Scope & Structs

Salih Dincer salihdb at hotmail.com
Sat Oct 12 12:10:17 UTC 2024


On Saturday, 12 October 2024 at 12:02:04 UTC, Salih Dincer wrote:
> ... even if I call the structure with the new operator. But if 
> I stop using classes, scope doesn't work properly!

Edit: It seems like scope is ineffective in structures. In fact, 
if there is the new operator, it is as if scope does not exist, 
and if it is construct without the new operator, it is as if 
scope does exist; is this normal?

SDB at 79




More information about the Digitalmars-d-learn mailing list