Re: Anxiety over 4.0
- Posted by Bernie Ryan <xotron at blue?rog?com> Jun 12, 2008
- 717 views
Matt Lewis wrote: > > Bernie Ryan wrote: > > > > Matt Lewis wrote: > > > > > > Yes, but how would you handle default parameters? In any case, the above > > > call would be: > > > }}} <eucode> > > > myFrame = f("wxFrame", {0, "My Frame", -1, -1, -1, -1, 0}) > > > </eucode> {{{ > > > Also, that's mainly for calling routines in a shared/dynamic library, > > > isn't > > > it? In eu4.0, you can use default parameters calling native euphoria > > > code. > > > > > > > Matt: > > > > That will not work in "C" because the last argument in a variable > > argument has to be a NULL and "C" would think your last argument > > ZERO was the null terminating and would leave you one argument short. > > Look up va_end in a "C" book. > > Bernie, why are you talking about C? We're talking about *Euphoria* 4.0. > Matt: Because Euphoria calls "C" DLL and SO. Isn't your wxFrame being called from a DLL or SO ? Isn't wxwidgets called from a DLL and SO ? Don't Motif and Xt use variable arguments in their SO's ? Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan