[Issue 11632] Old alias syntax accepts "ref"

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P2  |P3

--


[Issue 11632] Old alias syntax accepts "ref"

2021-01-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

Bolpat  changed:

   What|Removed |Added

 CC||qs.il.paperi...@gmail.com

--- Comment #7 from Bolpat  ---
The grammar allows this to make

alias RefDG = ref int delegate();

legal. Having ref be accepted but with no effect is nothing special about the D
compiler. It accepts a lot of annotations that have no effect.

The question which cases are accepts-invalid and which are not is mostly a
matter of taste.

--


[Issue 11632] Old alias syntax accepts "ref"

2017-07-05 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

Vladimir Panteleev  changed:

   What|Removed |Added

   Keywords||accepts-invalid

--


[Issue 11632] Old alias syntax accepts ref

2015-06-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

Robert Schadek rburn...@gmail.com changed:

   What|Removed |Added

 CC||rburn...@gmail.com

--- Comment #6 from Robert Schadek rburn...@gmail.com ---
phobos PR https://github.com/D-Programming-Language/phobos/pull/2995

is sort of blocked by:

template RefType(T) alias RefType = ref T;

not working anymore

--


[Issue 11632] Old alias syntax accepts ref

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||brian-sch...@cox.net

--- Comment #4 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
*** Issue 12299 has been marked as a duplicate of this issue. ***

--


[Issue 11632] Old alias syntax accepts ref

2014-04-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11632

Andrej Mitrovic andrej.mitrov...@gmail.com changed:

   What|Removed |Added

 CC||callumena...@gmail.com

--- Comment #5 from Andrej Mitrovic andrej.mitrov...@gmail.com ---
*** Issue 12257 has been marked as a duplicate of this issue. ***

--


[Issue 11632] Old alias syntax accepts ref

2013-11-28 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11632


Maxim Fomin ma...@maxim-fomin.ru changed:

   What|Removed |Added

 CC||ma...@maxim-fomin.ru


--- Comment #1 from Maxim Fomin ma...@maxim-fomin.ru 2013-11-28 07:46:39 PST 
---
More nonsense:

alias ref int ri;
//alias in int ii;
alias int oi;
//alias lazy int li;
//alias out int outi;

alias pure int pi;
alias @safe int si;
//alias trusted int ti;
alias nothrow int nthi;

alias auto int ai;
alias @property int pri;
alias @disable int di;
alias scope int sci;

alias align(16) int ali;

alias abstract int absi;

alias final int fi;
alias override int ovi;
alias inout int inoui;
alias synchronized int syi;

alias static int stati;

It is unclear however, whether this is a part of major accepts-invalid bug (dmd
is permissive in allowing to apply attributes to declarations, so here is
particular case) or defficiency in old alias syntax parsing.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 11632] Old alias syntax accepts ref

2013-11-28 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11632



--- Comment #2 from Dicebot pub...@dicebot.lv 2013-11-28 07:52:06 PST ---
Whatever it is, current behavior is extremely confusing for newbies as one may
expect it to actually work in example like provided in the first post.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 11632] Old alias syntax accepts ref

2013-11-28 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=11632


bearophile_h...@eml.cc changed:

   What|Removed |Added

 CC||bearophile_h...@eml.cc


--- Comment #3 from bearophile_h...@eml.cc 2013-11-28 08:02:54 PST ---
See also Issue 3934

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---