What is the point of D_Version2
    0ffh 
    spam at frankhirsch.net
       
    Sun Sep  2 08:18:14 PDT 2007
    
    
  
0ffh wrote:
> Um, I see it's a pain. Surely you know the string mixin workaround?
Someone posted it somewhere at some time.
I currently use this for strings:
---<snip>---
version (D_Version2)
{
	mixin("alias invariant(char)* icptr;");
	alias char* cptr;
}
else
{
	alias char*  icptr;
	alias char*  cptr;
	alias char[] string;
}
---<snap>---
Or were you just complaining about the lack of elegance here?
Regards, Frank
    
    
More information about the Digitalmars-d-learn
mailing list