Thread overview
[dmd-beta] D1 1.073 beta
Feb 08, 2012
Walter Bright
Feb 08, 2012
Jacob Carlborg
Feb 08, 2012
Walter Bright
Feb 08, 2012
Don Clugston
Feb 08, 2012
Jacob Carlborg
Feb 08, 2012
Walter Bright
February 08, 2012
http://ftp.digitalmars.com/dmd1beta.zip
February 08, 2012
On 08 Feb, 2012,at 10:21 AM, Walter Bright <walter at digitalmars.com> wrote:

> http://ftp.digitalmars.com/dmd1beta.zip
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagiccom
> http://lists.puremagic.com/mailman/listinfo/dmd-beta

I'm looking at this commit:

https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b
?
Why was "ref" removed?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20120208/4d965732/attachment.html>
February 08, 2012
> On 08 Feb, 2012,at 10:21 AM, Walter Bright <walter at digitalmars.com> wrote:
>
>> http://ftp.digitalmars.com/dmd1beta.zip
>> _______________________________________________
>> dmd-beta mailing list
>> dmd-beta at puremagic.com <mailto:dmd-beta at puremagic.com>
>> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
> I'm looking at this commit:
>
> https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b
>
> Why was "ref" removed?

D1 doesn't have ref.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20120208/eaa74cc8/attachment.html>
February 08, 2012
On 8 February 2012 21:34, Walter Bright <walter at digitalmars.com> wrote:
> On 08 Feb, 2012,at 10:21 AM, Walter Bright <walter at digitalmars.com> wrote:
>
> http://ftp.digitalmars.com/dmd1beta.zip
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
> I'm looking at this commit:
>
> https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b
>
> Why was "ref" removed?
>
>
> D1 doesn't have ref.

void blah(ref int x) { }

compiles.
February 08, 2012
On 8 feb 2012, at 21:34, Walter Bright wrote:

>> On 08 Feb, 2012,at 10:21 AM, Walter Bright <walter at digitalmars.com> wrote:
>> 
>>> http://ftp.digitalmars.com/dmd1beta.zip
>>> _______________________________________________
>>> dmd-beta mailing list
>>> dmd-beta at puremagic.com
>>> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>> 
>> 
>> I'm looking at this commit:
>> 
>> https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b
>> 
>> Why was "ref" removed?
> 
> D1 doesn't have ref.


Of course it does. It's been there for a long as I can remember. In fact, according to the changelog, it's been there since 2007:

http://www.digitalmars.com/d/1.0/changelog.html#new1_011

"Added keywords ref and macro."
"ref now works as a replacement for inout."

This works as expected with DMD 1.072:

void foo (ref int i)
{
    i++;
}

void main ()
{
    int a = 3;
    foo(a);
    assert(a == 4);
}

-- 
/Jacob Carlborg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20120208/77389914/attachment.html>
February 08, 2012
Yes it does!? It's synonymous with inout (D1 inout, not D2 inout).? Oodles of code uses ref, including Tango, if you removed ref, that needs to be undone.

See here: http://www.digitalmars.com/d/1.0/changelog.html#new1_011

-Steve




>________________________________
> From: Walter Bright <walter at digitalmars.com>
>To: Discuss the dmd beta releases for D <dmd-beta at puremagic.com>
>Sent: Wednesday, February 8, 2012 3:34 PM
>Subject: Re: [dmd-beta] D1 1.073 beta
> 
>
>On 08 Feb, 2012,at 10:21 AM, Walter Bright <walter at digitalmars.com> wrote:
>>
>>
>>http://ftp.digitalmars.com/dmd1beta.zip
>>>_______________________________________________
>>>dmd-beta mailing list
>>>dmd-beta at puremagic.com
>>>http://lists.puremagic.com/mailman/listinfo/dmd-beta
>>
>>I'm looking at this commit:
>>
>>
>>
>>https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b
>>
>>
>>
>>Why was "ref" removed?
>>
>D1 doesn't have ref.
>
>_______________________________________________
>dmd-beta mailing list
>dmd-beta at puremagic.com
>http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20120208/3d9c9b67/attachment-0001.html>
February 08, 2012
You guys got me, I was wrong!

> Yes it does!  It's synonymous with inout (D1 inout, not D2 inout).  Oodles of code uses ref, including Tango, if you removed ref, that needs to be undone.
>
> See here: http://www.digitalmars.com/d/1.0/changelog.html#new1_011
>
> -Steve
>
>     --------------------------------------------------------------------------------
>     *From:* Walter Bright <walter at digitalmars.com>
>     *To:* Discuss the dmd beta releases for D <dmd-beta at puremagic.com>
>     *Sent:* Wednesday, February 8, 2012 3:34 PM
>     *Subject:* Re: [dmd-beta] D1 1.073 beta
>
>>     On 08 Feb, 2012,at 10:21 AM, Walter Bright <walter at digitalmars.com>
>>     <mailto:walter at digitalmars.com> wrote:
>>
>>>     http://ftp.digitalmars.com/dmd1beta.zip
>>>     _______________________________________________
>>>     dmd-beta mailing list
>>>     dmd-beta at puremagic.com <mailto:dmd-beta at puremagic.com>
>>>     http://lists.puremagic.com/mailman/listinfo/dmd-beta
>>
>>     I'm looking at this commit:
>>
>>     https://github.com/D-Programming-Language/d-programming-language.org/commit/59e9decffc8f6fd3439492c406279ddf327b9b1b
>>
>>     Why was "ref" removed?
>
>     D1 doesn't have ref.
>
>     _______________________________________________
>     dmd-beta mailing list
>     dmd-beta at puremagic.com <mailto:dmd-beta at puremagic.com>
>     http://lists.puremagic.com/mailman/listinfo/dmd-beta
>
>
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20120208/b2739ae1/attachment.html>