[Issue 5316] std.getopt with associative arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 3 09:22:09 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5316
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
Component|DMD |Phobos
AssignedTo|andrei at erdani.com |nobody at puremagic.com
OS/Version|Mac OS X |All
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-09-03 09:22:05 PDT ---
P.S. currently getopt bails badly on hashes:
-----
import std.getopt;
void main(string[] args)
{
int[string] tune;
getopt(args, &tune, "tune");
}
-----
C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\getopt.d(499): Deprecation:
using * on an array is deprecated; use *(receiver).ptr instead
C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\getopt.d(499): Error: cannot
modify immutable expression *cast(immutable(char)*)receiver
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list