ModuleInfo, Object.localClasses(), and Object.find() - any users?
rikki cattermole
rikki at cattermole.co.nz
Sat Dec 10 00:19:11 UTC 2022
On 10/12/2022 11:35 AM, H. S. Teoh wrote:
> But maybe it's possible to make this pay-as-you-go? I.e., if nobody
> actually calls Object.localClasses or Object.find, then it won't be
> included. Only if somebody actually references it, it will be included.
> Sorta like a template. But I've no idea how feasible it is to implement
> such a thing.
Its a little too indirect I think.
I just can't see anything pulling in the symbol that have to be
generated for the localClasses array and the linker will just strip it out.
More information about the Digitalmars-d
mailing list