Re: [Libphidget-devel] serial numbers
Status: Alpha
Brought to you by:
jstrohm
|
From: Vadim T. <vt...@fr...> - 2002-09-12 07:18:45
|
According to fit...@ph...: > > Just a thought: why does the serial number have to be a number, no > > matter how coded? Give you an example: az93c12 - what's wrong with this > > number? > > No good reason, it just happened this way. The first piece of working > sample code I got my hands on did it this way, so that's what I do. > > > What's the primary purpose of the serial number? Let me guess: unique > > identifier? > > Yup. Then, the string serves as good as the number, though you can a) add more significant information to it (like, the release variations, or specific options included into an instance of a phidget), b) extend the address space (though this is rather theoretical at this moment). How much of the existing code will break if the serial happens to be a malformed number? > > I sincerely hope that you will run out of serial numbers ;) > > You mean with a 5-digit string, or a 32-bit long? I would consider > phidgets to be a success if I ran out with the 5 digit string. That's what I was implying ;) > Chester --vt |