ModuleInfo, Object.localClasses(), and Object.find() - any users?
Steven Schveighoffer
schveiguy at gmail.com
Tue Dec 13 05:29:01 UTC 2022
On 12/12/22 11:34 PM, Walter Bright wrote:
> On 12/12/2022 12:57 PM, Steven Schveighoffer wrote:
>> But it would be better to do that anyway, since the compiler isn't
>> completely consistent with which classes it inserts into `ModuleInfo`.
>
> Also, ModuleInfo can't know what to *exclude*.
If Object.factory is to be a supported feature (I don't think it should
be), then it has to include *all* classes. Otherwise, you have odd
unrelated conditions that break the feature, and something that brittle
really shouldn't be used.
-Steve
More information about the Digitalmars-d
mailing list