(git HEAD) std.datetime spewing deprecation messages
monarch_dodra via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 6 03:35:57 PDT 2014
On Friday, 6 June 2014 at 09:35:56 UTC, Jonathan M Davis via
Digitalmars-d wrote:
> On Fri, 06 Jun 2014 08:14:13 +0000
> Dicebot via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
>
>> On Friday, 6 June 2014 at 00:34:19 UTC, Jonathan M Davis via
>> Digitalmars-d wrote:
>> > And like with them, it's impossible to use ref for this,
>> > because you can't use
>> > ref with variadic template arguments.
>>
>> Wait what?
>>
>> void foo(T...)(ref T args)
>> {
>> args[0] = 42;
>> }
>>
>> void main()
>> {
>> int x;
>> foo(x);
>> assert(x == 42);
>> }
>
> Well, that's new then. You didn't used to be able to do that. I
> clearly missed
> that change. Thanks for the correction. I'd still use pointers
> in this case
> though, since it's clearer and consistent with existing code
> like getopt.
>
> - Jonathan M Davis
And strongly @system.
More information about the Digitalmars-d
mailing list