Re: win32lib event handling question

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

On Tue, 19 Jul 2005 18:14:57 -0700, ags <guest at RapidEuphoria.com>
wrote:

>I feel the interpreter
>could warn (newbies! :) about a routine_id of an as yet undeclared procedure?  
Me too. I have often longed for a wrapper function for routine_id, but
as noted Eu does not play fair. A suggestion springs to mind:

global type rtnid(object r)
	return not equal(r,-1)
end type

Use that type instead of integer for any local routine_id variable
definitions, and also in win32lib etc:

global procedure setHandler(integer id, integer flag, rtnid rid)
...
and either force use of removeHandler, or force {-1} rather than  -1
for the delete feature of setHandler.

Regards,
Pete
PS the type above should be part of the new standard library.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu