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
{{ message }}
Repository navigation
cppia: safe casts to Int, Float, Bool and String never throw #135
cast(value, Int) and the other basic types become unchecked conversions in cppia (Cppia.cpp), so cast("abc", Int) gives 0, cast(1.5, Int) gives 1 and cast(7, String) gives "7". Compiled code throws for all three.
Activity
Check the type in cppia safe casts to basic types
Check the type in cppia safe casts to basic types
Say what cppia safe casts to basic types give for null
Skip the cppia safe-cast check when the static type already passes
Skip the cppia safe-cast check when the static type already passes