Prev | Current Page 1030 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

__s Pointer to type char ( char* )
int Int int
float Float float
number Float or Int float or int
bool Bool bool
array Array Pointer to type value ( value* )
object A class instance or Dynamic value N/A; object properties can only be accessed
with the use of C helper functions
Part III: Extending the Possibilities
562
Although val_check appears to be the ultimate type checking function, this doesn ??™ t mean it makes the
other type checking functions redundant. While most of the functions in the previous table referring to
the lost of type checking functions return a nice safe Boolean value, val_check is a much harsher
customer; if the check verifies as true, then nothing happens and nothing is returned meaning life can go
on as normal, but if the opposite occurs, a neko_error is thrown and the currently executed Neko script
is exited. This might not be what you want, and certainly can be a little rash in some cases. At worse, it
can appear rude to your library users who probably won ??™ t have a clue as to what went wrong.


Pages:
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042