Skip to content

Conversation

@petermm
Copy link
Contributor

@petermm petermm commented Jan 13, 2026

Warning: function erlang:port_call/3 cannot be resolved.

erlang:port_call/3 doesn't exist..

@UncleGrumpy
Copy link

erlang:port_call/3 doesn't exist..

It does, but it is not necessary to add the erlang module name, like erlang:whereis/1 using the module name is optional for nif implemented functions in the erlang module.

@petermm
Copy link
Contributor Author

petermm commented Jan 14, 2026

hmm, searching AtomVM codebase for "port_call" yields nothing, so don't believe it's implemented in AtomVM.. nor does port_call/3 work..

Tested, and verified..

So doesn't exist, on AtomVM, afaik.

@UncleGrumpy
Copy link

You are right! My apologies. It temporarily slipped my mind that this is one of those places we diverge from OTP. This should be added to the page with Differences between AtomVM and BEAM, but that is a separate issue altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants