Phobos - breaking existing code

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 28 17:17:27 PST 2014


On Sat, Nov 29, 2014 at 01:11:54AM +0000, bearophile via Digitalmars-d wrote:
> Walter Bright:
> 
> >Can't tell users to do that. It's not reasonable.
> 
> A possible solution: in the standard D distribution you put two or
> more versions (duplicated) of Phobos (switchable with a compiler
> switch), so people that don't bother to follow the deprecation cycles
> can compile even 15 years old D code.
[...]

The problem with that, is that Phobos often doesn't even compile with
the previous release of DMD (or, for that matter, a commit prior to a PR
that spans both dmd and Phobos), so it's anyone's guess what an older
version of Phobos would do when compiled with a newer compiler.

Unless, of course, you maintain the old version enough to keep it
compilable with the current compiler. But that's a lot of additional
maintenance work.


T

-- 
Three out of two people have difficulties with fractions. -- Dirk Eddelbuettel


More information about the Digitalmars-d mailing list