http://d.puremagic.com/issues/show_bug.cgi?id=8220
--- Comment #8 from timon.g...@gmx.ch 2012-06-21 14:30:47 PDT --- (In reply to comment #7) > This example has been around a long time, and I've been telling people that > that's the way to do it. I'm really reluctant to break it, The behaviour must be fixed for __traits(compiles,...), but not necessarily for typeof. > and there doesn't seem to be an obvious other way to do it. alias typeof(Length.init*Length.init) Area; alias typeof(Length.init*Area.init) Volume; alias typeof(Mass.init/Volume.init) Density; ... or even alias typeof(meter*meter) Area; alias typeof(meter*meter*meter) Volume; alias typeof(kilogram/(meter*meter*meter)) Density; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------