Library Typedefs are fundamentally broken

Freddy via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 21 11:24:52 PDT 2014


Is this supposed to happen?
---
import std.typecons;

alias feet=Typedef!(float,0.0,"feet");
alias meter=Typedef!(float,0.0,"meter");

void main(){
	feet a=4.0;
	meter b=5.0;
	meter c=a*b;//opps
	pragma(msg,typeof(c));
}
---
$dmd -o- typetest.d
Typedef!(float, 0.00000F, "meter")


More information about the Digitalmars-d mailing list