You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeFoo*=distinctuint32funcparseAnyInt(s: staticstring): int=const lowercase =toLower(s)
when lowercase.startsWith("0x") or lowercase.startsWith("-0x"):
parseHexInt(lowercase)
else:
parseInt(s)
func`'foo`*(s: staticstring): Foo=const n =parseAnyInt(s)
Foo(n)
func`'bar`*(s: staticstring): Foo=const n =parseAnyInt(s)
Foo(n)
let f1 =0x41'foo# foo is whitelet f2 =0x42'bar# bar is redlet f3 =-0x43'bar# wonky until the apostrophe
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: