[
Lists Home |
Date Index |
Thread Index
]
On Wednesday 15 May 2002 21:11, Jeff Lowery wrote:
> Really, now. How hard can this type stuff be, anyway? I know, for
> instance, just by looking at it that:
>
> 13400
> is a number, and
>
> s
> is a character, and
>
> caddr
> is a string (unless it is an instruction for some weird language; but still
> a string, right?), and
>
> ABC12
> is a string (or, er, maybe a hex number, but nobody really uses those), and
>
> 3.1E-23
> is a, um, ... uh, ... number?
And yet, they are all also strings at the same time.
Some of them are alphanumeric strings.
A string field might have a value of '07974437842'. If you classified it as a
number based on that, things can go wrong, since that's a phone number in the
UK and removing the trailing digit (valid normalisation for numbers) would
corrupt it.
>
> Oh hell.
>
Yep :-)
ABS
--
Alaric B. Snell
http://www.alaric-snell.com/ http://RFC.net/ http://www.warhead.org.uk/
Any sufficiently advanced technology can be emulated in software
|