Idea : Expression Type

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Fri Feb 2 08:49:12 PST 2007


Vladimir Panteleev wrote:
> On Fri, 02 Feb 2007 12:57:06 +0200, Don Clugston <dac at nospam.com.au>
> wrote:
> 
>> ??? This has been part of the compiler for a very long time.
>> There's no need for the inline keyword, just use the -inline
>> compiler switch and it happens automatically. Or did I miss
>> something?
> 
> AFAIK, even with -inline, the compiler doesn't automatically inline
> functions in certain circumstances - for example, if they contain
> loops. Sometimes it is critical for the functions to be inlined - out
> of performance or security (obfuscation) reasons.
> 
> Either way, what are the disadvantages of such inline functions
> compared to the discussed expression types?

They are different beasts. Expression transformations specify syntactic 
processing exclusively.

Andrei



More information about the Digitalmars-d mailing list