You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi, Let's say I have a class called MyClass and it has a memebr called iType; now every time i create an object I pass the iType in the constructor. I want to be able to create a new object only if an object with the same iType does not exist.
What's the best practice to do it?
In other languages I could use a static vector member that will hold this info and have the constructor private. But there is no static class member in Delphi and Im not sure thats the right approach anyways.