Make const, immutable, inout, and shared illegal as function attributes on the left-hand side of a function

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 10 00:45:55 PDT 2014


On Fri, 10 Oct 2014 00:25:07 +0200
Joseph Rushton Wakeling via Digitalmars-d <digitalmars-d at puremagic.com>
wrote:

> I'm not sure whether I care to _enforce_ this style rather than
> strongly encourage it, as it's a breaking change.  I'd rather
> deprecation of left-hand-side attributes, rather than illegality, if
> that is possible.
the patch does exactly that: compiler emits deprecation warnings on
prefix attributes. nobody plans to break things immediately. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141010/817eecfa/attachment.sig>


More information about the Digitalmars-d mailing list