commit f2f593e9c4e9a188cfb78deb501cdaae2d1a3134 from: Omar Polo date: Tue Dec 19 10:28:43 2023 UTC ev: use def instead of const for globals I actually don't get the difference between def and const. maybe def is guaranteed to be a compile-time constant (just guessing). Other "#defines" in the hare stdlib seem to use def tho, so follow here too. commit - e9feffee9feb21519f324d13b201c31acf79b31d commit + f2f593e9c4e9a188cfb78deb501cdaae2d1a3134 blob - 930e60252b18395030ddb21f7822694e4255242d blob + 6dc01f1ada0cd150790915a07e9733217892a631 --- ev/ev.ha +++ ev/ev.ha @@ -35,8 +35,8 @@ export type event = enum i16 { WRITE, }; -export const READ = event::READ; -export const WRITE = event::WRITE; +export def READ = event::READ; +export def WRITE = event::WRITE; export type any = nullable *opaque;