Proposal: Replace __traits and is(typeof(XXX)) with a 'magic namespace'.

Leandro Lucarella llucax at gmail.com
Tue Nov 3 07:47:20 PST 2009


rmcguire, el  3 de noviembre a las 15:11 me escribiste:
> Andrei Alexandrescu <SeeWebsiteForEmail at erdani.org> wrote:
> I really like 'static' as the namespace, it would be awesome if it did not just 
> contain 'meta' stuff.
> 
> Could we lose 'pragma', 'typeof', unary 'is', 'typeid', '__traits'.
> 
> It makes a lot of sense to just say to someone "if you want to do something at  
> compile time, just check the 'static' documentation".

static.if(...) {
	static.foreach(...) {
		static.assert(...) {
		}
	}
}

=P

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
PITUFO ENRIQUE ATEMORIZA CATAMARCA, AMPLIAREMOS
	-- Crónica TV



More information about the Digitalmars-d mailing list