www.digitalmars.com         C & C++   DMDScript  

D.gnu - Phobos differences?

reply Alex Parrill <initrd.gz gmail.com> writes:
I've noticed that GDC's version of Phobos is missing some 
features from DMD's. Is there a place to report this, and is it 
possible to, in the meantime, use DMD's Phobos?

Here's some of the things I've noticed in particular:

* std.algorithm is not split up
* std.algorithm.comparison.predSwitch is missing
* The version of enforce that takes an exception as a template 
argument is missing (ex. `enforce!MyException(condition, 
"message")`)
Oct 23 2015
next sibling parent "H. S. Teoh via D.gnu" <d.gnu puremagic.com> writes:
On Fri, Oct 23, 2015 at 03:27:30PM +0000, Alex Parrill via D.gnu wrote:
 I've noticed that GDC's version of Phobos is missing some features
 from DMD's. Is there a place to report this, and is it possible to, in
 the meantime, use DMD's Phobos?
 
 Here's some of the things I've noticed in particular:
 
 * std.algorithm is not split up
 * std.algorithm.comparison.predSwitch is missing
 * The version of enforce that takes an exception as a template
 argument is missing (ex. `enforce!MyException(condition, "message")`)
Which version of GDC are you using? It may be using an older version of Phobos. T -- "Real programmers can write assembly code in any language. :-)" -- Larry Wall
Oct 23 2015
prev sibling parent reply "Iain Buclaw via D.gnu" <d.gnu puremagic.com> writes:
On 23 Oct 2015 5:30 pm, "Alex Parrill via D.gnu" <d.gnu puremagic.com>
wrote:
 I've noticed that GDC's version of Phobos is missing some features from
DMD's. Is there a place to report this, and is it possible to, in the meantime, use DMD's Phobos?
 Here's some of the things I've noticed in particular:

 * std.algorithm is not split up
 * std.algorithm.comparison.predSwitch is missing
 * The version of enforce that takes an exception as a template argument
is missing (ex. `enforce!MyException(condition, "message")`) It's phobos as seen in 2.066. There should really be older versions of documentation on the dlang site for people to reference.
Oct 23 2015
next sibling parent Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
On Friday, 23 October 2015 at 18:30:55 UTC, Iain Buclaw wrote:
 It's phobos as seen in 2.066.  There should really be older 
 versions of documentation on the dlang site for people to 
 reference.
Does GDC not include the HTML Phobos documentation (as does DMD)?
Oct 23 2015
prev sibling parent Wiktor =?UTF-8?B?xbt1cmF3aWs=?= <wiktor.zurawik gmail.com> writes:
On Friday, 23 October 2015 at 18:30:55 UTC, Iain Buclaw wrote:
 It's phobos as seen in 2.066.  There should really be older 
 versions of documentation on the dlang site for people to 
 reference.
I was about to post regarding some discrepancies in GDC's std.algorithm module. For example, the each template is also missing. So, it may be tricky for someone to jump right into GDC without knowing about those differences. Some kind of reference of this would certainly be handy.
Nov 11 2015