[Issue 7066] You can redefine .init and .stringof without error
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Wed Oct  7 11:36:08 PDT 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=7066
timon.gehr at gmx.ch changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr at gmx.ch
--- Comment #6 from timon.gehr at gmx.ch ---
(In reply to Walter Bright from comment #1)
> They're actually supposed to be overridable at the moment. I had thought
> there might be a use for this, but so far none have materialized.
> ...
There is one obvious use case:
struct S{ @disable enum init=0; }
It would be better to have a specific feature here though. E.g. 
struct S{ @disable init; }
--
    
    
More information about the Digitalmars-d-bugs
mailing list