Re: About get_key() alternative
- Posted by irv Oct 17, 2020
- 890 views
Better, declare an override for get_key(), then you don't need to change the name;
----------------------------- override function get_key() ----------------------------- -- drop-in replacement for the get_key() builtin integer ch = get_key() if platform()=WINDOWS then if ch=1015936 then ch=9 end if end if return ch end function
Which brings up a bug: override works fine when interpreted - but bound, shrouded or compiled, you get memory allocation errors and eventually lock up when you run out of memory.