Re: Dynamic Records?? (couple more wee things)
Re: Dynamic Records?? (couple more wee things)
- Subject: Re: Dynamic Records?? (couple more wee things)
- From: has <email@hidden>
- Date: Fri, 30 Nov 2001 00:58:05 +0000
Hi there, and a few more thoughts...
Some slight silliness I've noticed about the "word" keyword:
Decimals that use a middot instead of period confuse it:
word 1 of "5.3"
--> "5.3"
word 1 of "573"
--> "5" [ouch! - bad news for typographers...]
Stupid typos get handled inconsistently (though you could argue that a
stupid typo deserves a stupid response;):
word 1 of "end,the"
--> "end"
word 1 of "end.The"
--> "end.The" [I guess AS doesn't handle periods quite
intelligently enough]
Oh, and don't forget that hyphenated words count (correctly) as one word. I
don't know if there are other characters that are considered as part of a
single word.
Note: this'd complicate things if you planned to use my hashLib in its
'unsafe but case-insensitive' mode (which you'd want to use for speed).
Your labels need to be case-insensitive, which means you can't put vertical
bars around them by default unless you lowercase every single word first
(since putting bars around your label ensures case sensitivity). But if a
"word" contains any hyphens or periods (or other "problem" characters, if
any) you're going to have to catch it yourself, lowercase it and then add
vertical bars around it before passing it on (otherwise you'll get an
error).
Just to make things a bit more fun for you.:)
Hum... I think I'd consider living with the less-efficient-but-simpler
loop-based implementation if I were you.
[I wonder how far off Chris N. and co. are from implementing hash behaviour
in AS...?]
Cheers,
has