Re: getenv

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

Kenneth Rhodes wrote:
> 
> 
> Once again, I'm probably talking over my head here...
> 
> I do understand the simplicity of "dumbing down" the Linux version
> of Euphoria, its the easiest way out-- at least as far as cross-platform
> consistency.  However, it strikes me as fundamentally wrong to throw away,
> ignore, or mis-report information which might be useful.
>

Yes, I agree.
 
> So is it really that difficult to document the deficient functioning
> of Windows? blink
> 

I think this is worse then dumbing down the Linux version. If the language is
cross-platform then it should do it's best to be truly cross-platform. As a
developer, I want to know that it runs on Windows therefore it will work on
Linux. I do not want to have to code all sorts of ifdef's or if platform() checks
all over.

> Can cross-platform consistency be achieved by a platform contingent
> routine?  Or did we drop platform()?

platform() was never dropped. I posted a message with a misleading subject that
made some people think that (I was not thinking). However, there is a much better
way of doing platform checks now that will probably lead to platform() becoming a
function that no one uses.

instead of if platform() = WIN32 then ... you can do ifdef WIN32 then ... The
later decision is made at parse time only once in your applications life. The
platform() check is done as many times as you call it.

--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu