How to setup GDC with Visual D?
Johannes Pfau via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jul 5 12:50:39 PDT 2015
Am Sat, 04 Jul 2015 11:15:57 +0000
schrieb "Guy Gervais" <ggervais at videotron.ca>:
> On Saturday, 4 July 2015 at 08:34:00 UTC, Johannes Pfau wrote:
> > It's kinda fascinating that GDC/MinGW seems to work for some
> > real world applications.
> I haven't really tried a "real world application" as of yet;
> mostly small puzzle-type problems to get a feel for D.
> I did run into a problem with this code:
> int answer = to!(int)(split("7946590 6020978")).sum;
> It compiles fine under DMD but gives the error "Error: no
> property 'sum' for type 'int'" with GDC.
GDC uses a slightly older phobos version. It seems quite some imports
changed in the last phobos version. You need to import std.algorithm
and your code should work with gdc:
More information about the Digitalmars-d-learn