NEWTON
Asked
6 months ago
4
views
0
What are implicit arguments in Cairo? When would you use them instead of normally passing in arguments to a function?
ㅤ This question was originally posted on Triality
0
Implicit arguments are something nobody likes (or wants to use) but are currently required to be explicitly written. This will change in future versions of Cairo (https://community.starknet.io/t/truly-implicit-arguments/491/5).
Basically they are internal book keeping for the compiler / Cairo VM. They're used to track the internal memory pointers across function calls. Without them, the compiler wouldn't know how/where to continue executing code after a function returns.
You can read more details here: https://www.cairo-lang.org/docs/how_cairo_works/builtins.html#implicit-arguments
ㅤ This answer was originally posted on Triality
answered
6 months ago
ApeWorX: Why do I need to fund a Starknet account before deploying it?
How to use Access Control in Cairo language securely?
How many time does it take for stark to eth starkgate bridge process?
How do I log/print in Cairo 1.0?
How to verify Empiric’s Data Entries Using Events?
Cairo: How can i approve erc20 and transfer in the same transaction?
How do I move my Pathfinder node to another server / disk?