1. And another thing (VOID in win32lib)...
- Posted by Andy Serpa <ac at onehorseshy.com> Oct 04, 2003
- 366 views
The global VOID in win32lib causes a conflict with Diamond. As far as I can tell, VOID is only used a dummy variable internally to win32lib, and could be declared locally in win32lib.ew and winfile.ew without breaking anything? VOID is also used a dummy in Diamond, but is also meant to be used by the coder (for methods that aren't supposed to return values) and has the special property that it is incapable of holding any value other than 0 (via a custom type trick).
2. Re: And another thing (VOID in win32lib)...
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 04, 2003
- 360 views
----- Original Message ----- From: "Andy Serpa" <ac at onehorseshy.com> To: "EUforum" <EUforum at topica.com> Subject: And another thing (VOID in win32lib)... > > > The global VOID in win32lib causes a conflict with Diamond. Sorry. > As far as I > can tell, VOID is only used a dummy variable internally to win32lib, and > could be declared locally in win32lib.ew and winfile.ew without breaking > anything? You are wrong. I use VOID in nearly all my application code. Sure wish I could get Euphoria to ignore function returns. > VOID is also used a dummy in Diamond, but is also meant to be used by > the coder Same as win32lib. That's why I created it (before Diamond I believe). >(for methods that aren't supposed to return values) and has > the special property that it is incapable of holding any value other > than 0 (via a custom type trick). I didn't add this sophistication. -- Derek
3. Re: And another thing (VOID in win32lib)...
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 04, 2003
- 361 views
----- Original Message ----- From: "Andy Serpa" <ac at onehorseshy.com> To: "EUforum" <EUforum at topica.com> Subject: RE: And another thing (VOID in win32lib)... > > > Derek Parnell wrote: > > > > > > ----- Original Message ----- > > From: "Andy Serpa" <ac at onehorseshy.com> > > To: "EUforum" <EUforum at topica.com> > > Sent: Saturday, October 04, 2003 6:16 PM > > Subject: And another thing (VOID in win32lib)... > > > > > > > The global VOID in win32lib causes a conflict with Diamond. > > > > Sorry. > > > > > As far as I > > > can tell, VOID is only used a dummy variable internally to win32lib, and > > > > > > could be declared locally in win32lib.ew and winfile.ew without breaking > > > > > > anything? > > > > You are wrong. I use VOID in nearly all my application code. Sure wish I > > could get Euphoria to ignore function returns. > > > Aha. I saw that VOID was declared locally in a number of the demo's, > and didn't see it mentioned in the docs, although maybe it is. But > since it is a dummy, it wouldn't break anything if made local to > win32lib.ew, right? (It is never assigned a value in one file that is > used in another.) So as long as I declared it locally where needed, I > could unglobalize it in win32lib.ew, declare it locally in winfile.ew, > and remove the conflict that way... Knock yourself out, kid.