mixins as inline functions

Serg Kovrov kovrov at no.spam
Fri Aug 18 17:03:43 PDT 2006


Walter Bright wrote:
> Serg Kovrov wrote:
>> First time I looked at mixins in D reference, I thought that it could 
>> be used as inline function. Like a big C macro. But better =)
>>
>> It has its own scope, it has access to parent scope, everything seems 
>> fit. Except that in mixins it is not possible to use assign 
>> operations. Could this restriction be removed in future? Is there any 
>> plans for mixins evolution?
> 
> Why not just use inline functions?

Er... Because there is no inline functions? =)

But if seriously, does virtual methods (accessing 'this') can be inlined?

-- 
serg.



More information about the Digitalmars-d mailing list