Either I'm just too stupid, or D is lacking something

Oskar Linde oskar.lindeREM at OVEgmail.com
Sun Jul 30 05:37:09 PDT 2006


Bruno Medeiros wrote:
> Oskar Linde wrote:
[snip]
>> template IsSomethingOrWhatever(T) {
>>     const this = ...;
>> }
[snip]
> 
> Seems like a nice idea, although I would prefer a keyword other than 
> "this", even if a new one, like "thisalias" or something. I'd like to 
> think of "this" as always referring to some kind of runtime instance.
> 

It matches the current use of /this/ as class constructor and destructor:

class T {
	this() {...}
	~this() {...}
}

/Oskar



More information about the Digitalmars-d mailing list