Snippet Generic Data Attachment

Jesus4Lyf

Good Idea™
Reaction score
397
It fails with an inconsistent interface. The "create" method mirrors not the "destroy" method. For some reason, one may retrieve something without knowing whether or not it exists - how can know when to release... (talking about DynamicId). The method which creates is not one to one with the method which destroys.
>Well jesus4lyf, since you obviously have a strong opinion in that regard, what would you prefer for names?
You're not listening...
 

Nestharus

o-o
Reaction score
84
how can know when to release.

One knows when to release by the fact that one has retrieved the id before the release (can't be released without retrieving the id). The only way to release something that doesn't exist is if one hasn't retrieved the id before releasing it.


Furthermore, to the point you were actually talking about where two resources might be accessing this, that will never happen in a good design : ), so that is the user's fault for running into that, not mine ^_^. The reason for this is that this is in a module, meaning each resource will have its very own instantiation of this.

There is absolutely nothing wrong with this script : )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top