Skip to content

Commit

Permalink
Update README.md about function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort authored Jan 27, 2024
1 parent 3784a5f commit fed2d2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ All other types are constructed on the stack and put into the box later.
## Known Limitations

- Enums are not supported and can never be fully supported since their layout in memory is not fully specified.
- Function calls inside the instantiation are currently not supported because they cannot be differentiated from tuple struct instantiations. Just save them to local
variables for now and use those.
- Only calls of lowercase function names and uppercase tuple struct instantiations are supported.
This limitation is necessary because there is no way to determine whether something is a function call or a tuple struct instantiation and both have to be handled differently, so we just take a guess.
The macro will cause a compiler error if it encounters a struct where a function was expected and vice versa.

0 comments on commit fed2d2e

Please sign in to comment.