(a Max list is a message that begins with a number)

Dec 7, 2011 at 2:56am

(a Max list is a message that begins with a number)

This is in the help reference for zl. What does it mean?

#60526
Dec 7, 2011 at 7:26am

Hello,

messages sent to an object :

“1 2 3 4 5 6″ is the method “list” with “1 2 3 4 5 6″ as arguments ;
“74 momo fait du bobo” is the method “list” with “74 momo fait du bobo” as arguments ;

“74″ is the method “int” with “74″ as argument ;
“0.74″ is the method “float” with “0.74″ as argument ;

“toto 2 6 7 0″ is the method “toto” with “2 6 7 0″ as arguments ;
“a b c d” is the method “a” with “b c d” as arguments ;

i’m not sure to understand yet what really is a “symbol” ;-)

“For brevity in the discussion that follows, we refer to any Max message as a list including single elements such as int, symbol, and float and messages that begin with a symbol (a Max list is a message that begins with a number).”

more or less [zl] behavior : anything is considered as list (except of course private command as zlclear).

HTH

#217855
Dec 7, 2011 at 10:47am

vanille wrote: “1 2 3 4 5 6″ is the method “list” with “1 2 3 4 5 6″ as arguments

isnt it “1″ with “2″, “3″, “4″, “5″, and “6″ as arguments? that is how [printit] sees it.

#217856
Dec 7, 2011 at 3:13pm

@vanille béchamel is correct, if you write js, mxj or C code you’ll have a list method which will get the arguments: 1 2 3 4 5 6.

#217857
Dec 7, 2011 at 6:45pm

Thanks, that does help. I can’t remember seeing the word “method” used in the documentation but it makes sense to me that any symbolic names can be considered as referring to a “method of the object”. This sort of thing is often described in a language reference but Max documentation doesn’t seem to do it that way.

#217858

You must be logged in to reply to this topic.