Walter and I just discussed the matter of inheriting constructors. Our
thought on the issue:
a) If a class doesn't define any constructors and adds no fields,
inherit constructors. Example:
class MyException : Exception {}
b) If a class defines at least one constructor, do not inherit constr
Andrei Alexandrescu:
> c) If a class doesn't define any constructors but does add at least a
> non-static field -> undecided.
Does 'undecided' mean 'compile-time error'?"
Bye,
bearophile
On Mon, 30 Nov 2009 02:20:40 +0300, bearophile
wrote:
Andrei Alexandrescu:
c) If a class doesn't define any constructors but does add at least a
non-static field -> undecided.
Does 'undecided' mean 'compile-time error'?"
Bye,
bearophile
I think it means they are not decided whether it s
Denis Koroskin wrote:
On Mon, 30 Nov 2009 02:20:40 +0300, bearophile
wrote:
Andrei Alexandrescu:
c) If a class doesn't define any constructors but does add at least a
non-static field -> undecided.
Does 'undecided' mean 'compile-time error'?"
Bye,
bearophile
I think it means they are no
bearophile wrote:
Andrei Alexandrescu:
c) If a class doesn't define any constructors but does add at least a
non-static field -> undecided.
Does 'undecided' mean 'compile-time error'?"
We're undecided.
Andrei
On Mon, 30 Nov 2009 03:18:27 +0300, Andrei Alexandrescu
wrote:
Denis Koroskin wrote:
On Mon, 30 Nov 2009 02:20:40 +0300, bearophile
wrote:
Andrei Alexandrescu:
c) If a class doesn't define any constructors but does add at least a
non-static field -> undecided.
Does 'undecided' mean '
Denis Koroskin:
> Unfortunately, this conflicts with alias this feature. If we could rename
> constructors from "this" to "ctor", we could use it with no ambiguity:
That's another keyword, I think.
When I read that word it reminds me this word:
http://www.legrog.org/visuels/couvertures/71.jpg
"Andrei Alexandrescu" wrote in message
news:heuuk9$1nf...@digitalmars.com...
> Walter and I just discussed the matter of inheriting constructors. Our
> thought on the issue:
>
> a) If a class doesn't define any constructors and adds no fields, inherit
> constructors. Example:
>
> class MyExcept
Andrei Alexandrescu wrote:
Walter and I just discussed the matter of inheriting constructors. Our
thought on the issue:
a) If a class doesn't define any constructors and adds no fields,
inherit constructors. Example:
class MyException : Exception {}
b) If a class defines at least one constr
在 Mon, 30 Nov 2009 09:35:17 +0800,Denis Koroskin <2kor...@gmail.com>
写道:
On Mon, 30 Nov 2009 03:18:27 +0300, Andrei Alexandrescu
wrote:
Denis Koroskin wrote:
On Mon, 30 Nov 2009 02:20:40 +0300, bearophile
wrote:
Andrei Alexandrescu:
c) If a class doesn't define any constructors but
Andrei Alexandrescu wrote:
Walter and I just discussed the matter of inheriting constructors. Our
thought on the issue:
a) If a class doesn't define any constructors and adds no fields,
inherit constructors. Example:
class MyException : Exception {}
b) If a class defines at least one constr
"Ary Borenszweig" wrote in message
news:hf03ps$lk...@digitalmars.com...
> Andrei Alexandrescu wrote:
>> Walter and I just discussed the matter of inheriting constructors. Our
>> thought on the issue:
>>
>> a) If a class doesn't define any constructors and adds no fields, inherit
>> constructors
Don wrote:
Andrei Alexandrescu wrote:
Walter and I just discussed the matter of inheriting constructors. Our
thought on the issue:
a) If a class doesn't define any constructors and adds no fields,
inherit constructors. Example:
class MyException : Exception {}
b) If a class defines at leas
Andrei Alexandrescu wrote:
Don wrote:
Andrei Alexandrescu wrote:
Walter and I just discussed the matter of inheriting constructors.
Our thought on the issue:
a) If a class doesn't define any constructors and adds no fields,
inherit constructors. Example:
class MyException : Exception {}
b
On 2009-11-29 18:03:40 -0500, Andrei Alexandrescu
said:
Walter and I just discussed the matter of inheriting constructors. Our
thought on the issue:
a) If a class doesn't define any constructors and adds no fields,
inherit constructors. Example:
class MyException : Exception {}
b) If a c
On 2009-11-30 10:30:11 -0500, Andrei Alexandrescu
said:
class MyException : Exception {
private int sysCode;
invariant() { assert(sysCode < 100); }
}
If default initialization of the field puts it in a state that respects
the invariant, there isn't a problem.
I think this simply
Andrei Alexandrescu Wrote:
> Walter and I just discussed the matter of inheriting constructors. Our
> thought on the issue:
>
> a) If a class doesn't define any constructors and adds no fields,
> inherit constructors. Example:
>
> class MyException : Exception {}
>
> b) If a class defines at
Michel Fortin Wrote:
> On 2009-11-29 18:03:40 -0500, Andrei Alexandrescu
> said:
>
> > Walter and I just discussed the matter of inheriting constructors. Our
> > thought on the issue:
> >
> > a) If a class doesn't define any constructors and adds no fields,
> > inherit constructors. Example:
Nick Sabalausky wrote:
"Ary Borenszweig" wrote in message
news:hf03ps$lk...@digitalmars.com...
Andrei Alexandrescu wrote:
Walter and I just discussed the matter of inheriting constructors. Our
thought on the issue:
a) If a class doesn't define any constructors and adds no fields, inherit
co
Ary Borenszweig Wrote:
> Nick Sabalausky wrote:
> > "Ary Borenszweig" wrote in message
> > news:hf03ps$lk...@digitalmars.com...
> >> Andrei Alexandrescu wrote:
> >>> Walter and I just discussed the matter of inheriting constructors. Our
> >>> thought on the issue:
> >>>
> >>> a) If a class does
On 2009-11-30 18:45:38 -0500, Ary Borenszweig said:
Nick Sabalausky wrote:
"Ary Borenszweig" wrote in message
news:hf03ps$lk...@digitalmars.com...
Andrei Alexandrescu wrote:
c) If a class doesn't define any constructors but does add at least a
non-static field -> undecided.
What do you th
Michel Fortin wrote:
On 2009-11-30 18:45:38 -0500, Ary Borenszweig said:
Nick Sabalausky wrote:
"Ary Borenszweig" wrote in message
news:hf03ps$lk...@digitalmars.com...
Andrei Alexandrescu wrote:
c) If a class doesn't define any constructors but does add at least
a non-static field -> undec
Perhaps reusing a constructor of an inherited class should be easier.
Something like "alias this"? But how to refer to specific ctor overloads?
L.
On 30-11-2009 1:03, Andrei Alexandrescu wrote:
Walter and I just discussed the matter of inheriting constructors. Our
thought on the issue:
a) If
On Fri, 04 Dec 2009 10:05:16 +0200, Lionello Lunesu wrote:
> Perhaps reusing a constructor of an inherited class should be easier.
> Something like "alias this"? But how to refer to specific ctor
> overloads?
>
> L.
>
> On 30-11-2009 1:03, Andrei Alexandrescu wrote:
>> Walter and I just discusse
24 matches
Mail list logo