[nem-pl] Jak (póki co) nie należy pisać programów w Nemerle
"Paweł W. Olszta"
Pawel.Olszta at adv.pl
Mon Jan 12 11:06:47 CET 2004
Hej,
ten oto fragment kodu zabija kompilator na śmierć (tm):
| (CT_ref ("System.Int32"), CT_ref ("char")) //
FIXME: normalize the type names earlier
| (CT_ref ("System.Int32"), CT_ref ("System.Char")) =>
_ilg.Emit (OpCodes.Conv_Ovf_U2)
+ | (CT_ref ("int"), CT_ref
("System.Reflection.BindingFlags"))
+ | (CT_ref ("System.Int32"), CT_ref
("System.Reflection.BindingFlags"))
+ | (CT_ref ("int"), CT_ref
("System.Reflection.TypeAttributes"))
+ | (CT_ref ("System.Int32"), CT_ref
("System.Reflection.TypeAttributes"))
| (CT_ref ("int"), CT_ref
("System.Reflection.MemberTypes"))
| (CT_ref ("System.Int32"), CT_ref
("System.Reflection.MemberTypes"))
| (CT_ref ("int"), CT_ref
("System.Reflection.FieldAttributes"))
| (CT_ref ("System.Int32"), CT_ref
("System.Reflection.FieldAttributes"))
| (CT_ref ("int"), CT_ref
("System.Reflection.MethodAttributes"))
- | (CT_ref ("System.Int32"), CT_ref
("System.Reflection.MethodAttributes")) =>
+ | (CT_ref ("System.Int32"), CT_ref
("System.Reflection.MethodAttributes"))
+ | (CT_ref ("int"), CT_ref
("System.Reflection.TypeAttributes"))
+ | (CT_ref ("System.Int32"), CT_ref
("System.Reflection.TypeAttributes")) =>
()
Ciekawe jak to działa w takim na przykład Ocamlu. Albo SML'u.
--
My opinions may have changed, but not the fact
that I am right. -- Ashley Brilliant
More information about the devel-pl
mailing list