Thread overview
Mono-D v0.4.6 - UDA parsing support
Jan 06, 2013
alex
Jan 06, 2013
nazriel
Jan 06, 2013
alex
Jan 06, 2013
Philippe Sigaud
Jan 06, 2013
alex
Jan 06, 2013
nazriel
January 06, 2013
Just finished making the parser analyze UDA syntax flawlessly + Slight profiling statistics display support (dmd exclusive, unfortunately).

Ah, before I forget it: No, the 'deprecated' attribute syntax à la
[...] void foo() {}
is not supported, only
@... void bar() {}
:-)

http://mono-d.alexanderbothe.com/?p=781

https://github.com/aBothe/Mono-D
https://github.com/aBothe/D_Parser
January 06, 2013
On Sunday, 6 January 2013 at 17:10:17 UTC, alex wrote:
> Just finished making the parser analyze UDA syntax flawlessly + Slight profiling statistics display support (dmd exclusive, unfortunately).
>
> Ah, before I forget it: No, the 'deprecated' attribute syntax à la
> [...] void foo() {}
> is not supported, only
> @... void bar() {}
> :-)
>
> http://mono-d.alexanderbothe.com/?p=781
>
> https://github.com/aBothe/Mono-D
> https://github.com/aBothe/D_Parser

By depracated you mean new sytnax for adding messages to deprecate blocks introduced by yebblies?

deprecated("Don't use anymoar")
void func() {}?
January 06, 2013
On Sunday, 6 January 2013 at 17:15:30 UTC, nazriel wrote:
> On Sunday, 6 January 2013 at 17:10:17 UTC, alex wrote:
>> Just finished making the parser analyze UDA syntax flawlessly + Slight profiling statistics display support (dmd exclusive, unfortunately).
>>
>> Ah, before I forget it: No, the 'deprecated' attribute syntax à la
>> [...] void foo() {}
>> is not supported, only
>> @... void bar() {}
>> :-)
>>
>> http://mono-d.alexanderbothe.com/?p=781
>>
>> https://github.com/aBothe/Mono-D
>> https://github.com/aBothe/D_Parser
>
> By depracated you mean new sytnax for adding messages to deprecate blocks introduced by yebblies?
>
> deprecated("Don't use anymoar")
> void func() {}?

Oh, no you actually can type
deprecated("Don't do this because!") void oldFoo() {}
now.

With the 'deprecated' attribute syntax I meant this [..] attribute syntax, nothing else. :)
January 06, 2013
> Oh, no you actually can type
> deprecated("Don't do this because!") void oldFoo() {}
> now.


You can? Wow, yet another change that was not in the docs? I'm becoming bitter, here.


>
> With the 'deprecated' attribute syntax I meant this [..] attribute syntax, nothing else. :)
>

OK.

Good job, Alexander.


January 06, 2013
On Sunday, 6 January 2013 at 17:18:33 UTC, alex wrote:
> On Sunday, 6 January 2013 at 17:15:30 UTC, nazriel wrote:
>> On Sunday, 6 January 2013 at 17:10:17 UTC, alex wrote:
>>> Just finished making the parser analyze UDA syntax flawlessly + Slight profiling statistics display support (dmd exclusive, unfortunately).
>>>
>>> Ah, before I forget it: No, the 'deprecated' attribute syntax à la
>>> [...] void foo() {}
>>> is not supported, only
>>> @... void bar() {}
>>> :-)
>>>
>>> http://mono-d.alexanderbothe.com/?p=781
>>>
>>> https://github.com/aBothe/Mono-D
>>> https://github.com/aBothe/D_Parser
>>
>> By depracated you mean new sytnax for adding messages to deprecate blocks introduced by yebblies?
>>
>> deprecated("Don't use anymoar")
>> void func() {}?
>
> Oh, no you actually can type
> deprecated("Don't do this because!") void oldFoo() {}
> now.
>
> With the 'deprecated' attribute syntax I meant this [..] attribute syntax, nothing else. :)

Aaa hahaha [] syntax that didn't get anywhere but still has to be lured into deprecation process ;D
January 06, 2013
On Sunday, 6 January 2013 at 17:37:05 UTC, Philippe Sigaud wrote:
>> Oh, no you actually can type
>> deprecated("Don't do this because!") void oldFoo() {}
>> now.
>
>
> You can? Wow, yet another change that was not in the docs? I'm becoming
> bitter, here.
>
>
>>
>> With the 'deprecated' attribute syntax I meant this [..] attribute syntax,
>> nothing else. :)
>>
>
> OK.
>
> Good job, Alexander.

There should be a dedicated list of changes made to the spec sheets. Or even a dedicated repository, book, wiki or whatsoever to make all changes purely clear for everyone.

@Philippe: I've found out about this syntax _just_ because there were hundreds of errors thrown out while parsing though phobos - So in the end, I'm designing the parser more after phobos than the actual spec. Mentally insane, but well..it's just another D thing.