supporting DMD-1.016 and DMD-2.000 with the same source code

Thomas Kuehne thomas-dloop at kuehne.cn
Mon Jun 18 23:43:39 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Walter Bright schrieb am 2007-06-18:
> Thomas Kuehne wrote:
>> Below are a few code samples that might help you to make your code
>> compatible with DMD-1.016 as well as DMD-2.000.

[...]

> This is why I put the string aliases into dmd 1.016. Then, just replace 
> the char[] with string, and it'll work with both 1.0 and 2.0.

[...]

> I fixed the 1.015 compiler to accept the () as being optional. So, use 
> the () for both, and it should work.

The main problem is that both changes aren't yet incorporated into GDC
and unlike GDC DMD can't generate 64bit code.

Thomas


-----BEGIN PGP SIGNATURE-----

iQIVAwUBRneF17ZlboUnBhRKAQJa9Q//Ubhl+WwZcJ5sdcoNhwM6bLZo7Mebc2Po
T4S0LWHAwsDQoHlwMaz4iQpuFxThm/EIED90fMZMuRdGb9c4iNsfhIqS6i0SjRTK
2GKSHQFt2dTZHxYdJ8H4l7n32BZssnUXuAKDG0k4O72roCrbZutECIXnFxlwtbcy
pP/7poSU/Peuh+Ap5YxuGea3idhUBFSUXmweL6ZruJtIv6OhayVIa0DDkcgds2Wz
csYTpBQlN+FhOkZLCF7fhh3uPgQUp7yk4w7R/0rhpuTCGRY2vX2Ffgr5A6ObQWu/
2dRlAEFnFbE0V3eDq/ps9WlfrVippDcPRic18EnHJH4l9PG5bL4ApvcbVhKXWoUp
UBqgd5qFMaVnnOG5GTPbNKD8nUFwY20JsJ4yn/hhpAWByMm97n/O+xAJ1Nyc+9CR
Dc77iQw5ggSJBQbeMhR4PKrNysITJ0ub2lOC5Hr+VV+6jAkwsdmfDNqZWOe8gfX/
e4UHotOSbWxyqzB5/sVlZ9t/ZXCwYAIENnxTujsqr4su0NUCcKt385t0q7a7KAOE
KfCxiAf5jZJSQ3VH1IrmFxxHn5mZU5Q6+XLJ1XTrI3vgJWIlQeG3nTZOi6jBhHWY
OIj+A0OrzzYBx3QuThkJQKEmdYmqFbsbUuHhUYO5jMGHJs4P66VnV4x+BkntrNI4
sxaytxsl3TQ=
=fcLc
-----END PGP SIGNATURE-----



More information about the Digitalmars-d mailing list