Object.factory() and module name
eles
eles at eles.com
Fri Apr 26 10:03:12 PDT 2013
On Friday, 26 April 2013 at 16:06:14 UTC, Luís Marques wrote:
> On Friday, 26 April 2013 at 15:34:01 UTC, eles wrote:
>> Proposals:
>> Object.factory(".Human"); // idem as Object.factory("<module
>> name>.Human");
>
> Can't this one be done with a trivial change to the library,
> for strings known at compile time, by checking at compile time
> if the string starts with a dot? Would that be enough to
> alleviate the problem, or do you think more dynamic scenarios
> also suffer significantly from this limitation?
The change may be trivial (and I think it is), but a decision
must be reached first.
More information about the Digitalmars-d
mailing list