Re: routine_id() question
- Posted by Greg Haberek <ghaberek at gmail.com> Nov 15, 2005
- 436 views
> -- the built-in routines return -1 when passed to routine_id(). (invalid) > -- the idea was to use a switch routine like the following instead of the yes, they do that since they're built in. To get around this, wrap the functions as so:
function old_peek( atom mem ) return peek( mem ) end function without warning -- turn of redefined warning function peek( atom mem ) return old_peek( mem ) end function with warning
~Greg