Bug 1888 – unfortunate comment in stdlib.d

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Mac OS X
Creation time
2008-03-03T02:26:00Z
Last change time
2015-06-09T05:15:20Z
Assigned to
dvdfrdmn
Creator
afb

Comments

Comment #0 by afb — 2008-03-03T02:26:11Z
(GDC r199) Got a strange error with the innocent alias std.c.stdlib.atof atof; (whilst trying to keep std.string and std.c.stdlib apart) Error: identifier 'atof' of 'std.c.stdlib.atof' is not defined Turned out the placement of the comment was unfortunate: version (GNU) { private import gcc.config.errno; alias gcc.config.errno.ERANGE ERANGE; } else //const int ERANGE = 34; // on both Windows and linux double atof(char *); /// int atoi(char *); /// ditto Alternatively, it forgot to comment out the else.
Comment #1 by dvdfrdmn — 2008-04-16T19:30:16Z
Fixed in release 0.25 / svn 210