On Thursday, 5 January 2023 at 16:38:49 UTC, Vijay Nayar wrote:
Does that class inherit the scope of the function it is inside, similar to how an inner class does with an outer class?
yup. They can see the local variables from the function.
Adam D Ruppe via Digitalmars-d-learn Thu, 05 Jan 2023 08:45:46 -0800
On Thursday, 5 January 2023 at 16:38:49 UTC, Vijay Nayar wrote:
Does that class inherit the scope of the function it is inside, similar to how an inner class does with an outer class?
yup. They can see the local variables from the function.