>> -----Original Message-----
>> From: Cedric Villat [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, February 22, 2005 10:50 PM
>> To: CF-Talk
>> Subject: Re: Case-sensitive Struct keys
>>
>> Dave,
>>
>> Any ideas on how to do this? The reason I originally did
>> it in a struct,
>> was I could simply find the properties of a word, since
>> it was the key. If
>> I organize the data as an array of structs and have the
>> word value be a
>> key in my struct, wouldn't that require more overhead
>> when searching for
>> that word? Do you have any code that would quickly find a
>> word if this was
>> the case?

> Personally I would use structs for this... the words
> really aren't "variable
> names" rather their labels for variable data (perhaps a
> subtle
> rationalization, but it works for me).

> To maintain case sensitivity you'll just have to use array
> notation to set
> and get your key names.

> But in this case I think that structs are the way to go.

I think we already covered this -- but array notation won't work for
him to maintain the case-sensitivity because in his case the same word
would be used twice with different case and actually need to have both
instances of the word (because he's wieghting them for the probability
of being SPAM). So array notation won't let him use both words -- it'd
have to be a Java HashMap or he'd have to hash() them in the
structure. Personally I'd probably use the HashMap.

s. isaac dealey     954.927.5117
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://macromedia.breezecentral.com/p49777853/
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196096
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to