Re: No more platform(), conditional includes, conditional functions, condit

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

Matt Lewis wrote:
> 
> Jeremy Cowgar wrote:
> > 
> > This platform check takes place at parse/compile time not during runtime.
> > The
> > difference is described in detail in:
> 
> The only downside to this is for shrouded code.  Originally, the platform
> call was optimized at compile time.  But it was changed so that shrouded code
> could be more cross platform.  I guess this puts us back to single platform
> shrouded code.
> 
> But I'm not sure that many people shroud anything anymore.  I can't recall
> the last time I did that.  I either bind or translate.
> 
> Matt

I was going to say that with platform(), I could bind once and run anywhere;
but then I woke up from my fantasy.  Every bind is platform-specific anyway
because of the interpreter backend it joins with.  So, I can't really think
of any examples where platform() would work but ifdef wouldn't.

And I thought that the original use of shroud ended at version 2.5.  The
current incarnation of "shroud" is little more than precompiled bytecode
similar to a Java .class file or a .NET executable.  I can't say that I've
ever used it, but I could see where it could be useful in some customized
applications.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu