Skip to content

Commit

Permalink
update std::comptime
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Sep 11, 2024
1 parent 56ac525 commit 53d6799
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/std/comptime.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ Supports only structure types.
Parameter ident should be constant.
It allows access to private fields.

`fn Method(self, ident: str): comptimeValue`\
Returns comptimeValue for method access expression.
Supports only structure types.
Parameter ident should be constant.
It allows access to private methods.

`fn Unwrap(self)`\
Unwraps expression for runtime execution.

Expand Down

0 comments on commit 53d6799

Please sign in to comment.