Feature idea: .userinit property (or trait) to retrieve the initializer of a variable
Vladimir Panteleev
vladimir at thecybershadow.net
Wed Jul 17 15:33:20 PDT 2013
On Wednesday, 17 July 2013 at 11:28:18 UTC, Andrej Mitrovic wrote:
> Anyway, I think the feature should be fairly easy to implement,
> but
> would anyone else have a use for this?
At least once I wanted to reset a variable to its default value
(which wasn't in a manifest constant).
Would it make sense to [ab]use the "default" keyword for this, to
avoid introducing a new property which might collide with
existing code?
More information about the Digitalmars-d
mailing list