mention builtin ex coming up
This commit is contained in:
parent
88a8f4788d
commit
4251076b50
3 changed files with 10 additions and 2 deletions
|
|
@ -5,7 +5,9 @@
|
|||
//
|
||||
// const Stuff = enum(u8){ foo = 16 };
|
||||
//
|
||||
// You can get the integer out with a built-in function:
|
||||
// You can get the integer out with a builtin function,
|
||||
// @enumToInt(). We'll learn about builtins properly in a later
|
||||
// exercise.
|
||||
//
|
||||
// var my_stuff: u8 = @enumToInt(Stuff.foo);
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue