← Back to index
|
Original Bugzilla link
Bug 6887 – Regression of getopt
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-11-03T07:22:00Z
Last change time
2011-11-03T09:25:20Z
Assigned to
nobody
Creator
zan77137
Comments
Comment #0
by zan77137 — 2011-11-03T07:22:42Z
This code doesn't work! (
https://github.com/D-Programming-Language/phobos/commit/3d685801492f08d30dac3f4e099e09804d47c150
) CODE: ----------------- import std.getopt; void main(string[] args) { string[] p; getopt(args, "p", &p); } ----------------- RESULT: ----------------- p:\winroot\dmd2\bin\..\import\std\getopt.d(511): Error: using * on an array is deprecated; use *(receiver[cast(uint)0]).ptr instead -----------------
Comment #1
by k.hara.pg — 2011-11-03T09:25:20Z
SHOO's pull request to fix this issue:
https://github.com/D-Programming-Language/phobos/pull/312
https://github.com/D-Programming-Language/phobos/commit/035bda84963e75d8ce5ff987cc62f179675a7305