Possibly new core method/function?

Archive of the older Feature Request Forum Posts

Moderator: POL Developer

Locked
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am
Location: Myrtle Beach, South Carolina

Possibly new core method/function?

Post 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?

:angel:
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post 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.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Post 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.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib »

Exactly my thought on it :)
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am
Location: Myrtle Beach, South Carolina

Post by MontuZ »

Just a random thought, =D. As usual, lol.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Post by MuadDib »

Nothing wrong with random thoughts. Most of all of mine are :)
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Post 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.
User avatar
CWO
POL Expert
Posts: 1159
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Post 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.
Locked