Re: getenv CORRECTION

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

Derek Parnell wrote:
> 
> Bernie Ryan wrote:
> 
> > }}}
<eucode>
> > if not getenv(name) and platform() = 3
> > then return -1
> > else return getenv(name) end if
> > </eucode>
{{{

> 
> Apart from the fact that that code would fail (getenv() returns a sequence or
> an atom), the platform() test would be executed every time and getenv() would
> be called twice. 
> 
> 
> -- 
> Derek Parnell
> Melbourne, Australia
> Skype name: derek.j.parnell

if equal(getenv(name),0) and platform() = 3
 then return -1
 else return getenv(name) end if
 


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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu