Entry (main) method inside a class?
Thomas Kuehne
thomas-dloop at kuehne.cn
Mon Mar 19 02:52:47 PDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Frits van Bommel schrieb am 2007-03-18:
[snip]
> About your sample.d: It thinks I'm a Windows user who didn't compile
> Phobos with debug symbols :P.
> In reality, I'm using GDC 0.23 on amd64 Linux.
> It turns out GDC's std/math.d only declares isnormal() itself if on x86,
> otherwise it aliases gcc.config.isnormal() to do the job...
> (Adding "version(GNU) if(!funcs) { funcs = "gcc.config.isnormal" in
> functions; }" right after the lookup should fix it)
>
> Also, your struct example seems to have a typo (0x13_45_67_AB !=
> 0x1234567AB).
Fixed
> And some unit tests in flectioned.d fail:
> ---
> $ gdmd -L--allow-multiple-definition -fall-sources -unittest -oftest
> test.d cn/kuehne/flectioned.d cn/kuehne/unittest_walker.d
> /usr/bin/ld: Warning: size of symbol `_moduleUnitTests' changed from
> 1084 in unittest_walker.o to 58 in
> /home/urxae/opt/gdc/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.1.1/../../../../lib64/libgphobos.a(moduleinit.o)
> $ ./test
> [snip]
> testing cn.kuehne.flectioned.TracedException.__unittest21 ... FAILED:
> (std.asserterror.AssertError) AssertError Failure
> cn/kuehne/flectioned.d(991)
Strange, this unittest succeds if it is put in a seperate file!?
> testing cn.kuehne.flectioned.Trace.__unittest18 ... FAILED:
> (std.asserterror.AssertError) AssertError Failure
> cn/kuehne/flectioned.d(654)
> testing cn.kuehne.flectioned.Trace.__unittest19 ... FAILED:
> (std.asserterror.AssertError) AssertError Failure
> cn/kuehne/flectioned.d(654)
> testing cn.kuehne.flectioned.TracedException.__unittest22 ... FAILED:
> (std.asserterror.AssertError) AssertError Failure
> cn/kuehne/flectioned.d(654)
> testing cn.kuehne.flectioned.Trace.__unittest17 ... FAILED:
> (std.asserterror.AssertError) AssertError Failure
> cn/kuehne/flectioned.d(654)
Removed this test because it may hide the real problems.
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFF/morLK5blCcjpWoRAmceAKCAz1m8nziIv8XGd42L4EurE7qYLwCfUFCn
Z/yF3T0DW25wcBmmSF0HmZA=
=AvLO
-----END PGP SIGNATURE-----
More information about the Digitalmars-d
mailing list