Re: Should we have an Unimplemented Attribute?

2011-02-11 Thread Simen kjaeraas
Bruno Medeiros wrote: 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... :) Absolutely. But such a class/struct would also not show up in documentation,

Re: Should we have an Unimplemented Attribute?

2011-02-10 Thread Bruno Medeiros
On 03/02/2011 01:48, Simen kjaeraas wrote: Jonathan M Davis wrote: On Wednesday, February 02, 2011 16:16:00 Andrej Mitrovic wrote: On 2/3/11, Jonathan M Davis 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.

Re: Should we have an Unimplemented Attribute?

2011-02-04 Thread Jonathan M Davis
On Friday 04 February 2011 06:42:20 Andrej Mitrovic wrote: > On 2/4/11, Jonathan M Davis wrote: > > On Thursday 03 February 2011 20:51:01 Andrej Mitrovic wrote: > >> Ah, I've just realized we already have the @disable attribute. This is > >> practically what I was looking for. > > > > That's more

Re: Should we have an Unimplemented Attribute?

2011-02-04 Thread Andrej Mitrovic
On 2/4/11, Jonathan M Davis wrote: > On Thursday 03 February 2011 20:51:01 Andrej Mitrovic wrote: >> Ah, I've just realized we already have the @disable attribute. This is >> practically what I was looking for. > > That's more for doing stuff like disabling functions which the compiler > normally

Re: Should we have an Unimplemented Attribute?

2011-02-03 Thread Jonathan M Davis
On Thursday 03 February 2011 20:51:01 Andrej Mitrovic wrote: > Ah, I've just realized we already have the @disable attribute. This is > practically what I was looking for. That's more for doing stuff like disabling functions which the compiler normally takes care of if you don't - such as opAssi

Re: Should we have an Unimplemented Attribute?

2011-02-03 Thread Andrej Mitrovic
Ah, I've just realized we already have the @disable attribute. This is practically what I was looking for.

Re: Should we have an Unimplemented Attribute?

2011-02-03 Thread Andrej Mitrovic
On 2/3/11, Gerrit Wichert wrote: > Am 02.02.2011 23:59, schrieb Andrej Mitrovic: >> But what about structs/classes/functions/etc which are partially >> implemented, but still unusable? Marking them with deprecated doesn't >> make sense, as this will likely confuse both the user and the library >>

Re: Should we have an Unimplemented Attribute?

2011-02-03 Thread Gerrit Wichert
Am 02.02.2011 23:59, schrieb Andrej Mitrovic: > But what about structs/classes/functions/etc which are partially > implemented, but still unusable? Marking them with deprecated doesn't > make sense, as this will likely confuse both the user and the library > writers. Would it be overkill to introdu

Re: Should we have an Unimplemented Attribute?

2011-02-03 Thread Jonathan M Davis
On Thursday 03 February 2011 03:02:04 Jacob Carlborg wrote: > On 2011-02-03 00:38, Piotr Szturmaj wrote: > > Andrej Mitrovic wrote: > >> We know what a Deprecated Attribute is for: > >> http://www.digitalmars.com/d/2.0/attribute.html#deprecated. > >> > >> You can use a compiler switch to enable us

Re: Should we have an Unimplemented Attribute?

2011-02-03 Thread Jacob Carlborg
On 2011-02-03 00:38, Piotr Szturmaj wrote: Andrej Mitrovic wrote: We know what a Deprecated Attribute is for: http://www.digitalmars.com/d/2.0/attribute.html#deprecated. You can use a compiler switch to enable using these: -d allow deprecated features But what about structs/classes/functions/e

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread KennyTM~
On Feb 3, 11 06:59, Andrej Mitrovic wrote: We know what a Deprecated Attribute is for: http://www.digitalmars.com/d/2.0/attribute.html#deprecated. You can use a compiler switch to enable using these: -d allow deprecated features But what about structs/classes/functions/etc which are partia

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Andrej Mitrovic
Yeah, I had a hunch it would be overkill. Well that's why I'm asking, not proposing. :p

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Jonathan M Davis
On Wednesday, February 02, 2011 17:48:05 Simen kjaeraas wrote: > Jonathan M Davis wrote: > > On Wednesday, February 02, 2011 16:16:00 Andrej Mitrovic wrote: > >> On 2/3/11, Jonathan M Davis wrote: > >> > Usually the thing to do would be to either comment them out or put an > >> > assert(0) > >>

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Simen kjaeraas
Jonathan M Davis wrote: On Wednesday, February 02, 2011 16:16:00 Andrej Mitrovic wrote: On 2/3/11, Jonathan M Davis 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

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Jonathan M Davis
On Wednesday, February 02, 2011 16:16:00 Andrej Mitrovic wrote: > On 2/3/11, Jonathan M Davis 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 a

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Andrej Mitrovic
Well, then I suggest they be used in Phobos when a function isn't implemented. Pretty please!

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Andrej Mitrovic
Oh, I meant Druntime. :p

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Iain Buclaw
== Quote from Andrej Mitrovic (andrej.mitrov...@gmail.com)'s article > On 2/3/11, Jonathan M Davis 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. > > Regardless, I question the wisdom in adding something

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Andrej Mitrovic
On 2/3/11, Jonathan M Davis 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. > Regardless, I question the wisdom in adding something into the > language which _encourages_ you to leave in unfinished code. > My u

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Jonathan M Davis
On Wednesday, February 02, 2011 14:59:53 Andrej Mitrovic wrote: > We know what a Deprecated Attribute is for: > http://www.digitalmars.com/d/2.0/attribute.html#deprecated. > > You can use a compiler switch to enable using these: > -d > allow deprecated features > > But what about structs/clas

Re: Should we have an Unimplemented Attribute?

2011-02-02 Thread Piotr Szturmaj
Andrej Mitrovic wrote: We know what a Deprecated Attribute is for: http://www.digitalmars.com/d/2.0/attribute.html#deprecated. You can use a compiler switch to enable using these: -d allow deprecated features But what about structs/classes/functions/etc which are partially implemented, but

Should we have an Unimplemented Attribute?

2011-02-02 Thread Andrej Mitrovic
We know what a Deprecated Attribute is for: http://www.digitalmars.com/d/2.0/attribute.html#deprecated. You can use a compiler switch to enable using these: -d allow deprecated features But what about structs/classes/functions/etc which are partially implemented, but still unusable? Marking t