Revert attributes to their defaults with default keywords
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jan 9 04:23:08 PST 2015
On Fri, 9 Jan 2015 13:16:48 +0100
Daniel Kozák via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> V Fri, 9 Jan 2015 14:11:00 +0200
> ketmar via Digitalmars-d <digitalmars-d at puremagic.com> napsáno:
>
> > can it be used like this:
> >
> > final:
> > nothrow:
> > ...
> > default void foo () { ... }
> > ...
> >
> > so only `foo` becomes default, but all other methods after `foo` are
> > `final nothrow`?
>
> not now, but I plan add this
> for now you can use:
> default { void foo () { ... }}
>
> >
> > and can it be used like this:
> >
> > default void foo () nothrow { ... }
> >
> > so `default` resets all attrs and then i can specify another set of
> > attrs inline?
>
> same as the first one but this works:
>
> default { void foo () nothrow { ... }}
i think it's acceptable even in this form. please, please make a PR
from it, so even if it will not be accepted to mainline, i still can
steal it for my private builds! ;-)
-------------- 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/20150109/0dd50d3f/attachment.sig>
More information about the Digitalmars-d
mailing list