Introspection: Difference between revisions
Content deleted Content added
m →{{header|Retro}}: update for retro12 |
|||
Line 1,776:
=={{header|Retro}}==
This will exit if the
<lang Retro>
The existance of functions can be checked using
<lang Retro
~~~
▲The existance of functions can be checked using find. In this, a helper function is provided to improve readability.
▲( Checks for existance of "bloop" and "abs" )
▲: executeByName ( $- )
▲ find drop [ @d->xt ] [ @d->class ] bi withClass ;
[
~~~</lang>
Retro has no direct way to check for data types of functions. Assuming that a word class is defined for integer variables, we could do something like this:
<lang Retro>
</lang>
|