main declaration
bearophile
bearophileHUGS at lycos.com
Fri Mar 19 05:43:25 PDT 2010
Steven Schveighoffer:
> You are allowed to modify the args, they are guaranteed not to be in ROM.
> The true signature, if there existed such a thing, should be
> unique(char[])[] args. Because D arrays are safe, you are in no danger of
> corrupting memory, unlike C.
In D2 all strings are immutable(somechartype)[], so how can you justify the args[x] to be an exception to that rule?
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list