[Suggestion] More deprecation features

BCS ao at pathlink.com
Fri Jul 18 12:00:46 PDT 2008


Reply to superdan,

> version(function),
> version(class)
> version(struct)
> version(module)
> 

I think version is not the correct place to put this, however I do think 
it would be nice to have this ability.

OTOH

<Not tested>

static if(is(this) && is(typeof(this) _ == class))  // ~ version class

static if(is(this) && is(*this) && is(typeof(*this) _ == struct)  // ~ version 
struct

static if(!is(this)) // ~ version none of the above

</Not tested>





More information about the Digitalmars-d mailing list