zink-lang / zink

Rustic programming language that targets the Ethereum Virtual Machine
https://zink-lang.org
GNU General Public License v3.0
139 stars 13 forks source link

Support struct as function parameters #261

Open clearloop opened 1 month ago

clearloop commented 1 month ago

Describe the feature

similar to the support of dynamic arguments

Solution

need to calculate the length of struct in compilation from function signatures

malik672 commented 5 days ago

@clearloop currently working on this, I don't think I understand this fully lol

clearloop commented 5 days ago

@clearloop currently working on this, I don't think I understand this fully lol

Thank you for your contribution!

This issue requires some pre-requirements, for example the support of #253 which is pretty complex in the memory model, if you'd like to dive into the memory model, I'd suggest to try #249 if you understand the dynamic memory in solidity correctly! you can imagine that excepting the basic opcode mappings, zink is like a HUFF library ^ ^

btw, I hope you can focus on the issues assigned to you previously first )) once you complete #255 and #256, it will be easy for you to handle all of the derived macro related stuffs in zink, it's a huge part indeed ))

feel free to chat about anything related in our telegram group!

malik672 commented 4 days ago

@clearloop currently working on this, I don't think I understand this fully lol

Thank you for your contribution!

This issue requires some pre-requirements, for example the support of #253 which is pretty complex in the memory model, if you'd like to dive into the memory model, I'd suggest to try #249 if you understand the dynamic memory in solidity correctly! you can imagine that excepting the basic opcode mappings, zink is like a HUFF library ^ ^

btw, I hope you can focus on the issues assigned to you previously first )) once you complete #255 and #256, it will be easy for you to handle all of the derived macro related stuffs in zink, it's a huge part indeed ))

feel free to chat about anything related in our telegram group!

will leave it then