*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?
*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…