www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - std.variant for D1?

reply 0ffh <spam frankhirsch.net> writes:
Hi!

Are there any plans of backporting std.variant to D1?
Or is it, apart from any features which might be just
not possible in D1,sufficiently close to Daniel Keeps
variant type that this could be used as a replacement
when compiling for D1?

Regards, Frank
Oct 16 2007
parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
0ffh wrote:
 
 Hi!
 
 Are there any plans of backporting std.variant to D1?
 Or is it, apart from any features which might be just
 not possible in D1,sufficiently close to Daniel Keeps
 variant type that this could be used as a replacement
 when compiling for D1?
 
 Regards, Frank
 

If the answer is no then I think we should start a std2 project on dsource which ports d2 phobos additions to d1. --bb
Oct 16 2007
next sibling parent reply Walter Bright <newshound1 digitalmars.com> writes:
Bill Baxter wrote:
 0ffh wrote:
 Are there any plans of backporting std.variant to D1?
 Or is it, apart from any features which might be just
 not possible in D1,sufficiently close to Daniel Keeps
 variant type that this could be used as a replacement
 when compiling for D1?

If the answer is no then I think we should start a std2 project on dsource which ports d2 phobos additions to d1.

There are no plans to add new features to D1, just bug fixes. After all, it would not be stable if new stuff kept being added! I don't think anyone has tried std.variant on D1, so don't know if it works or not.
Oct 16 2007
parent Daniel Keep <daniel.keep.lists gmail.com> writes:
Walter Bright wrote:
 Bill Baxter wrote:
 0ffh wrote:
 Are there any plans of backporting std.variant to D1?
 Or is it, apart from any features which might be just
 not possible in D1,sufficiently close to Daniel Keeps
 variant type that this could be used as a replacement
 when compiling for D1?

If the answer is no then I think we should start a std2 project on dsource which ports d2 phobos additions to d1.

There are no plans to add new features to D1, just bug fixes. After all, it would not be stable if new stuff kept being added! I don't think anyone has tried std.variant on D1, so don't know if it works or not.

http://www.prowiki.org/wiki4d/wiki.cgi?DanielKeep/Variant It's not exactly the same, but it shares many of the same features. -- Daniel
Oct 16 2007
prev sibling parent jcc7 <technocrat7 gmail.com> writes:
== Quote from Bill Baxter (dnewsgroup billbaxter.com)'s article
 0ffh wrote:
 Hi!

 Are there any plans of backporting std.variant to D1?
 Or is it, apart from any features which might be just
 not possible in D1,sufficiently close to Daniel Keeps
 variant type that this could be used as a replacement
 when compiling for D1?

 Regards, Frank

dsource which ports d2 phobos additions to d1. --bb

Also, if no one wants to be in charge of an entirely new project, the backports could probably be contributed to the the scrapple project (http://www.dsource.org/projects/scrapple).
Oct 17 2007