ModuleInfo, Object.localClasses(), and Object.find() - any users?
ryuukk_
ryuukk.dev at gmail.com
Sun Dec 11 17:41:13 UTC 2022
On Friday, 9 December 2022 at 22:20:28 UTC, Walter Bright wrote:
> Currently, the ModuleInfo struct generated for each module also
> includes a pointer to the ClassInfo for every class in that
> module.
>
> The only reference to this data is in the functions
> Object.localClasses() and Object.find(). The idea is to be able
> to instantiate a class via a text string rather than a link to
> the name.
>
> This adds a lot of extra size.
>
> 1. Does anybody use Object.localClasses() or Object.find() ?
>
> 2. Does anybody need them?
>
> 3. Could it be changed to only include the classes marked
> `export` ?
>
> 4. Could we just remove it entirely?
I vote for 4
More information about the Digitalmars-d
mailing list