[Issue 13155] Disallow final abstract classes
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jul 18 18:33:01 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13155
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #3 from Jonathan M Davis <jmdavisProg at gmx.com> ---
I very much doubt that this will ever happen. It's used at least one place in
Phobos (std.process.environment). Basically, it allows you to create a
namespace within a module or to have a global singleton of sorts. You can do
something similar by declaring a class whose default constructor is disabled,
but regardless, some people are definitely using final abstract (or abstract
final) on purpose, so I don't expect that it will ever become illegal.
--
More information about the Digitalmars-d-bugs
mailing list