ModuleInfo, Object.localClasses(), and Object.find() - any users?

Walter Bright newshound2 at digitalmars.com
Fri Dec 9 22:20:28 UTC 2022


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?


More information about the Digitalmars-d mailing list