Consider the following, totally contrived, code. The compiler
tells me:
tst39.d(21): Error: constructor `tst39.B.this(string s)` is not
callable using argument types `()`
tst39.d(21):constructor `tst39.B.this` hides base class
function `tst39.A.this`
tst39.d(21):add `alias thi
On Sunday, 23 March 2025 at 05:40:32 UTC, Jonathan M Davis wrote:
On Saturday, March 22, 2025 11:38:05 AM MDT Paul Backus via
Digitalmars-d-learn wrote:
On Saturday, 22 March 2025 at 12:05:11 UTC, Ali Çehreli wrote:
> On 3/21/25 8:35 PM, Andy Valencia wrote:
>
> > tst39.d(21):add `alias
On Sunday, 23 March 2025 at 05:40:32 UTC, Jonathan M Davis wrote:
On Saturday, March 22, 2025 11:38:05 AM MDT Paul Backus via
Digitalmars-d-learn wrote:
On Saturday, 22 March 2025 at 12:05:11 UTC, Ali Çehreli wrote:
> On 3/21/25 8:35 PM, Andy Valencia wrote:
>
> > tst39.d(21):add `alias
On Monday, 24 March 2025 at 03:46:25 UTC, Salih Dincer wrote:
When you add an empty constructor, the code still runs without
an error
Yes, I had already made it run. I was asking about making it run
using aliases which, as it turns out, you can't. I'm grateful
that there's even a PR in the
On Saturday, 22 March 2025 at 03:35:35 UTC, Andy Valencia wrote:
Consider the following, totally contrived, code. The compiler
tells me:
tst39.d(21): Error: constructor `tst39.B.this(string s)` is not
callable using argument types `()`
tst39.d(21):constructor `tst39.B.this` hides base
On Saturday, March 22, 2025 11:38:05 AM MDT Paul Backus via Digitalmars-d-learn
wrote:
> On Saturday, 22 March 2025 at 12:05:11 UTC, Ali Çehreli wrote:
> > On 3/21/25 8:35 PM, Andy Valencia wrote:
> >
> > > tst39.d(21):add `alias this = tst39.A.this` to
> > `tst39.B`'s body
> > > to merge
On Saturday, 22 March 2025 at 12:05:11 UTC, Ali Çehreli wrote:
On 3/21/25 8:35 PM, Andy Valencia wrote:
> tst39.d(21):add `alias this = tst39.A.this` to
`tst39.B`'s body
> to merge the overload sets
Yeah, that doesn't work. Perhaps a regression...
It's never worked. The error message
On 3/21/25 8:35 PM, Andy Valencia wrote:
> tst39.d(21):add `alias this = tst39.A.this` to `tst39.B`'s body
> to merge the overload sets
Yeah, that doesn't work. Perhaps a regression...
> I _can_ add this to B:
>
> ```d
> this() {
> super():
> }
> ```
And then it's mo
On Saturday, 22 March 2025 at 03:35:35 UTC, Andy Valencia wrote:
Consider the following, totally contrived, code. The compiler
tells me:
tst39.d(21): Error: constructor `tst39.B.this(string s)` is not
callable using argument types `()`
tst39.d(21):constructor `tst39.B.this` hides base