*Originally posted by sbeener *
**and in the string is like an array debate, iâm firmly in the ânot the same thingâ camp. **
Ouuhh⌠That one hurt⌠Let me explain then: I said that I find arrays [SIZE=1]a bit[/SIZE] similar to strings [SIZE=1]sometimes[/SIZE] because of the .length thing, and because elements of a String can be accessed quite similarly to Arrays elements (in very simple cases). Of course I never said they were the same, but the way I see it, you could use Arrays instead of Strings in most cases (and in C, C++ and Java, Strings are in fact arrays of char if Iâm ot mistaken so I donât how Flash works, but it must be similar).
I knew what you meant anyway⌠donât listen to us peanut gallery types. We love you Pom, and you go on thinking that strings and array are whatever they need to be to you, to let you grasp them. I often use associations for things to help me remember how to use them. Rarely do they make sense to anyone other than myself.
Haha, word association is about 95% of the method I have to use to memorize things. No one can understand it, but it works good for me. You could say the word apple and I will remember I have to return a rented movie, I will remember that because there was an apple in the movie or something. Very odd, I donât even understand it, my brain just works it out on its own.
This thread has been very educational to me. I stood back and learned. I still need to learn more of the basics though. Whenever I seem to run a search for tutorials on strings I get all these entries for learning RegEXP for MX. Is this what I need to know?
And Lost, RegEXP are useful, so you should definitely learn that, but if you want to learn the Strings methods, open the AS dictionary and just try themâŚ
Ahaha! I was waiting for your answer Supra
I agree with you, their are not the same, but whatâs a String? An array of char. So letâs settle with this: Strings are a very particular kind of arrays⌠Or do you disagree?
Ah ha: Supra, this:
âyou can have an array of strings, but can you have an string of arrays?â
is EXACTLY the words i was thinking when i started posting that strings are not like arrays!
And then i thought
var string = â[1,2,3], [4,5,6],[7,8,9]â and so onâŚ
Basically, you can put whatever in a string, cantcha?
Hey, YOU were saying theyâre the same, and now you deny the obvious?! lol
Itâs not one array, itâs 3 of em in that string, so youâd just split at â,â and then array1 = resultOfSplit[0], array2 = resultOfSplit[1} etcâŚ
*Originally posted by ilyaslamasse *
âStrings are a very particular kind of arrays⌠Or do you disagree?â
i disagree. a string is a flat, literal datatype. an array is more like a reference to information. it can contain strings, objects, more arrays, booleans, etc. just about anything, and just about any number of anything.
ever loaded a bunch of movie references into an array to work with all of them at once? try that with a string. sure, you could have them comma delimited and then split them into an array and then evaluate th⌠hold on, did you just change it into an array? see what i mean?
itâs not that they have no similarities, itâs just that they have so many more differences.
Hmm⌠[SIZE=1]Iâm just arguing now because French people have to argue to the deathâŚeven if theyâre wrong (Iâm not saying it is the case here :P)[/SIZE]
OK, no, forget it. Iâm convinced Even though youâll agree that Arrays and Strings are a bit alike [SIZE=1]Overwhelming Frenchood mode engaged[/SIZE]
ilyaslamasse.removeMovieClip(now);
discussion.stop(now);
var useless = true;
if (useless == true){
var funny = true also;
}else{
lol;
}
I like this thread, letâs put it in an array!
Then we split it up between all posters,
parse it, send it to an XML socket and
unescape everything before going nutsâŚ