Re: getenv CORRECTION

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu