allMembers broke for __
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sat Jun 16 06:47:59 UTC 2018
On Saturday, June 16, 2018 06:08:17 DigitalDesigns via Digitalmars-d wrote:
> When an identifier starts with __, allMembers does not return it.
> This is very bad behavior! It can silently create huge problems
> if the programmer is not aware of the bug.
>
> Instead, if you want to keep the current behavior at least create
> an error or warning rather than silently create a bug to waste
> the users time tracking it down.
I would point out that identifiers that start with two underscores are
supposed to be reserved for the compiler. Declaring them yourself is begging
for trouble in general.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list