Thread: -keyNOTdown(i)
View Single Post
  #39  
Old 01-14-2004, 11:00 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
I might be a little late in asking this, but how exactly Loriel's tokenize convention more efficient?

it would seem to me that requesting a string to be searched through and broken down and then assigned to 2 seperate parts of an array wouldnt be as efficient at all.

if (walking == 0)
setani idle;
else
setani walk;

what is less efficient about the old way? It does one check.
even if you wanted to be crafty why not..

setstring blah,idle,walk;
setani #I(blah,walking);

although in terms of efficiency it seems equivilent to me. ::shrugs::
The tokenize idea is crazy and unique, but please explain why it is better.
__________________
Reply With Quote