Re: About get_key() alternative

new topic     » goto parent     » topic index » view thread      » older message » newer message

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu