RE: Eu's good design

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

jbrown105 at speedymail.org wrote:
> 
> 
> On Tue, Aug 19, 2003 at 07:38:20AM +0000, Al Getz wrote:
> > > > 2.  Ability to call virtual functions
> > > 
> > > I don't see how that can be done (at best merely emulated via routine 
> > > ids).
> > 
> > Hello again jbrown,
> > 
> > Im not sure what you mean here?  Also, Rob is looking into
> > more ways of doing this also.
> > 
> > Take care for now,
> > Al
> > 
> 
> Well, how would you call a virtual function in Euphoria?
> 
> jbrown
> 
> -- 
>  /"\  ASCII ribbon              | http://www.geocities.com/jbrown1050/
>  \ /  campain against           | Linux User:190064
>   X   HTML in e-mail and        | Linux Machine:84163
>  /*\  news, and unneeded MIME   | http://verify.stanford.edu/evote.html
> 
> 

Hello there jbrown,

For example...


include dll.e
RoutineName = define_c_func( {}, RoutineMemAddress, {C_POINTER}, C_LONG)

--Then you can call it via c_func:

atom retv
retv=c_func(RoutineName,{Params})

Rob said he was thinking of a way to 'undefine' the c func
too in case you dont need that particular routine any longer.

It works pretty good for fairly static methods that will
probably be used throughout the program instances life.

Take care for now,
Al

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

Search



Quick Links

User menu

Not signed in.

Misc Menu