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 within classComputers with:

import classComputers;

But it won't go:

Error: undefined identifier `classComputer` in module `classComputers`, did you mean class `classComputers`?

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.

Reply via email to