Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 27, 2015 does gdc recognize @nogc? | ||||
---|---|---|---|---|
| ||||
I download gdc from official gdc downloading page but it give me error compiling this code: ``` class Foo { this(long timestamp) nothrow @nogc { ... } } ``` the error message is ``` error: user defined attributes cannot appear as postfixes ``` Looks like gdc doesn't know what @nogc means and treats it as an user defined attribute. |
April 27, 2015 Re: does gdc recognize @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | On 27 April 2015 at 15:15, drug via D.gnu <d.gnu@puremagic.com> wrote: > I download gdc from official gdc downloading page but it give me error > compiling this code: > ``` > class Foo > { > this(long timestamp) nothrow @nogc > { > ... > } > } > ``` > the error message is > ``` > error: user defined attributes cannot appear as postfixes > ``` > Looks like gdc doesn't know what @nogc means and treats it as an user > defined attribute. Did you not get 2.066.1? http://gdcproject.org/downloads |
April 27, 2015 Re: does gdc recognize @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Iain Buclaw | On 27.04.2015 16:43, Iain Buclaw via D.gnu wrote: > On 27 April 2015 at 15:15, drug via D.gnu <d.gnu@puremagic.com> wrote: >> I download gdc from official gdc downloading page but it give me error >> compiling this code: >> ``` >> class Foo >> { >> this(long timestamp) nothrow @nogc >> { >> ... >> } >> } >> ``` >> the error message is >> ``` >> error: user defined attributes cannot appear as postfixes >> ``` >> Looks like gdc doesn't know what @nogc means and treats it as an user >> defined attribute. > > Did you not get 2.066.1? > > http://gdcproject.org/downloads > I'm not sure, but I checked it double. I downloaded here https://packages.debian.org/jessie/gdc-4.9 https://packages.debian.org/sid/gdc-4.9 https://packages.debian.org/experimental/gdc-4.9 the same result |
April 27, 2015 Re: does gdc recognize @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | On 27 April 2015 at 16:22, drug via D.gnu <d.gnu@puremagic.com> wrote:
> On 27.04.2015 16:43, Iain Buclaw via D.gnu wrote:
>>
>> On 27 April 2015 at 15:15, drug via D.gnu <d.gnu@puremagic.com> wrote:
>>>
>>> I download gdc from official gdc downloading page but it give me error
>>> compiling this code:
>>> ```
>>> class Foo
>>> {
>>> this(long timestamp) nothrow @nogc
>>> {
>>> ...
>>> }
>>> }
>>> ```
>>> the error message is
>>> ```
>>> error: user defined attributes cannot appear as postfixes
>>> ```
>>> Looks like gdc doesn't know what @nogc means and treats it as an user
>>> defined attribute.
>>
>>
>> Did you not get 2.066.1?
>>
>> http://gdcproject.org/downloads
>>
> I'm not sure, but I checked it double. I downloaded here
> https://packages.debian.org/jessie/gdc-4.9
> https://packages.debian.org/sid/gdc-4.9
> https://packages.debian.org/experimental/gdc-4.9
> the same result
That's the debian package, which would be running 2.064.1, and not the official download. ;-)
Just to note though, the gdc-5.1 debian package will be shipped with 2.066.1.
|
April 28, 2015 Re: does gdc recognize @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Iain Buclaw | On 27.04.2015 17:57, Iain Buclaw via D.gnu wrote: >> I'm not sure, but I checked it double. I downloaded here >> https://packages.debian.org/jessie/gdc-4.9 >> https://packages.debian.org/sid/gdc-4.9 >> https://packages.debian.org/experimental/gdc-4.9 >> the same result > > That's the debian package, which would be running 2.064.1, and not the > official download. ;-) > > Just to note though, the gdc-5.1 debian package will be shipped with 2.066.1. > That changes all )). It would be nice to mark these binaries as 2.064.1, may be like this? https://github.com/D-Programming-GDC/gdcproject/pull/11 |
Copyright © 1999-2021 by the D Language Foundation