Should we have an Unimplemented Attribute?

Bruno Medeiros brunodomedeiros+spam at com.gmail
Thu Feb 10 12:37:46 PST 2011


On 03/02/2011 01:48, Simen kjaeraas wrote:
> Jonathan M Davis <jmdavisProg at gmx.com> wrote:
>
>> On Wednesday, February 02, 2011 16:16:00 Andrej Mitrovic wrote:
>>> On 2/3/11, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
>>> > Usually the thing to do would be to either comment them out or put an
>>> > assert(0)
>>>
>>> Can't do that with classes and struct.
>>
>> ??? You can comment out classes and structs just fine. You can also
>> comment out
>> member functions of classes and structs just fine. You can put
>> assert(0) in
>> member functions of classes and structs just fine. In this case, it
>> sounds like a
>> particular member function should have been commented out but wasn't.
>>
>> - Jonathan M Davis
>
> I think he means that any use of an @unimplemented class should give a
> warning/error/other message.
>

I think you definitely get an error when trying to use a commented out 
class/struct... :)

-- 
Bruno Medeiros - Software Engineer


More information about the Digitalmars-d mailing list