Page 1 of 1
Possibly new core method/function?
Posted: Wed Nov 08, 2006 1:32 pm
by MontuZ
I was working on the distro when it hit me slowly, maybe we need a function that allows us to give an object a new serial?

Posted: Wed Nov 08, 2006 2:11 pm
by MuadDib
Personally, I don't like that (hehehe)
Now for my reasons. Threads. Might cause (but I don't know personally) issues where multi-threading is enabled. Would have to have shini answer that one for me.
Posted: Wed Nov 08, 2006 2:44 pm
by Yukiko
I also see this as a potential problem.
Not sure why one would ever want to do this but if you did find a reason and if you didn't care what the value of the new serial is you can simply create a new item and copy all necessary attributes/CProps/member values to the new item and then destroy the old one. And voilla! The new item will have a different serial.
Posted: Wed Nov 08, 2006 2:48 pm
by MuadDib
Exactly my thought on it

Posted: Wed Nov 08, 2006 3:30 pm
by MontuZ
Just a random thought, =D. As usual, lol.
Posted: Wed Nov 08, 2006 3:47 pm
by MuadDib
Nothing wrong with random thoughts. Most of all of mine are

Posted: Wed Nov 08, 2006 10:40 pm
by OldnGrey
But I can see why the neatness freaks would want it!
CompactSerialNumbers(); would be a nice thing to run on restart for those who love their hard disk defragging.
Posted: Wed Nov 08, 2006 10:54 pm
by CWO
that would screw up a lot of tracking and one of the basic points of serial numbers being completely unique to the item.