On Tuesday, 8 June 2021 at 02:37:44 UTC, someone wrote:
On Tuesday, 8 June 2021 at 02:05:27 UTC, Paul Backus wrote:
Your module and class are both named `classComputers`, with an
`s` at the end. You should change one of the to have a
different name so that there's no ambiguity.
Although I a
On Tuesday, 8 June 2021 at 02:05:27 UTC, Paul Backus wrote:
Your module and class are both named `classComputers`, with an
`s` at the end. You should change one of the to have a
different name so that there's no ambiguity.
dmd output:
./dm.d(49): Error: undefined identifier `classComputer` i
On Tuesday, 8 June 2021 at 01:17:05 UTC, someone wrote:
On Tuesday, 8 June 2021 at 00:54:41 UTC, someone wrote:
Are there alternatives to nested classes for such scenarios ?
Self-reply: I created two files for classComputers and
classComputer and I replaced the nested-classComputer code
with
On Tuesday, 8 June 2021 at 00:54:41 UTC, someone wrote:
Are there alternatives to nested classes for such scenarios ?
Self-reply: I created two files for classComputers and
classComputer and I replaced the nested-classComputer code within
classComputers with:
import classComputers;
But it
Consider the following code in what I used nested-classes for the
first time within D:
```d
import std.string;
import std.stdio;
class classComputers {
classComputers lhs;
classComputers rhs;
int opApply(int delegate(classComputer) dg) { /// boilerplate
code to handle the class's de