RE: 2.3 callbacks

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

> -----Original Message-----
> From: Robert Craig [mailto:rds at RapidEuphoria.com]

> Martin Stachon writes:
> > RELNOTES.htm says :
> > "Windows callback routines written in Euphoria can
> > now take 9 arguments (was 8). Thanks to Matt Lewis. "
> >
> > I thought adding a bit would make 16 args possible,
> > wouldn't it ?
> 
> At first I thought I'd increase it to 16, but
> when I looked at the amount of extra code
> it would take, in both the interpreter and the
> translator, I decided just to go with 9 for now,
> which is the maximum that anyone has ever asked for.
> Those who now have the source can see that the
> amount of code required goes up something like n-squared.
> It also slows down all callbacks slightly if a larger number
> of arguments is supported.

Thanks for that, Rob.  However, there is a way around this limit.  I wrote
some ASM (contained in EuCOM) that allows you to set up a function that can
be used as a callback, which will store the arguments in memory and call a
'normal' Eu callback routine.

Matt Lewis

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

Search



Quick Links

User menu

Not signed in.

Misc Menu