Are compile time generated, stable and unique IDs possible?
Robert M. Münch
robert.muench at saphirion.com
Fri May 8 12:45:52 UTC 2020
Let's assume I have an GUI application and I want to record some
user-actions which can be replayed.
And this replay should be possible even if the application layout
changes. Hence, I somehow need to identify the run-time objects in a
way that this identification stays the same while the app is further
developed and between user sessions.
And I don't want to manually manage all IDs (initially) but use the
compiler for this.
Is there any way to generate such stable unique IDs at compile-time? I
can imagine that his maybe needs to be combined with a mixin that is
used inside a constructor to get IDs into run-time objects.
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
More information about the Digitalmars-d-learn
mailing list