ola
i wonder for what is the first argument in [get], when i allways receive eitherway the content of the first created "polygon"? attached is a little patch, that should explain more my question.
thanx
MoRiTz
#N canvas 717 105 593 410 10; #N canvas 414 72 463 437 data3000 1; #X restore 93 10 pd data3000; #X obj -58 11 dollar1-get-test n1; #X text 7 333 for what is the first argument; #X obj 155 211 pointer; #X obj 155 260 pack f f f f; #X obj 155 231 get n2-rect x y z q; #X obj -61 37 dollar1-get-test n2; #X obj -59 62 dollar1-get-test n3; #X obj -29 173 pointer; #X obj -29 222 pack f f f f; #X obj 319 239 pointer; #X obj 319 288 pack f f f f; #X obj -29 193 get n1-rect x y z q; #X obj 320 259 get n3-rect x y z q; #X msg -29 151 traverse pd-data3000 , next; #X msg 155 189 traverse pd-data3000 , next; #X msg 319 217 traverse pd-data3000 , next; #X obj -29 247 print n1; #X obj 155 285 print n2; #X obj 319 313 print n3; #X obj 148 57 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 148 86 t b b b; #X text -69 193 n1-->; #X text 118 231 n2-->; #X text 285 260 n3-->; #X text 7 350 in [get] , it outputs everywhere the same...; #X text 169 56 click!; #X msg 320 91 next; #X connect 3 0 5 0; #X connect 4 0 18 0; #X connect 5 0 4 0; #X connect 5 1 4 1; #X connect 5 2 4 2; #X connect 5 3 4 3; #X connect 8 0 12 0; #X connect 9 0 17 0; #X connect 10 0 13 0; #X connect 11 0 19 0; #X connect 12 0 9 0; #X connect 12 1 9 1; #X connect 12 2 9 2; #X connect 12 3 9 3; #X connect 13 0 11 0; #X connect 13 1 11 1; #X connect 13 2 11 2; #X connect 13 3 11 3; #X connect 14 0 8 0; #X connect 15 0 3 0; #X connect 16 0 10 0; #X connect 20 0 21 0; #X connect 21 0 14 0; #X connect 21 1 15 0; #X connect 21 2 16 0; #X connect 27 0 10 0; #X connect 27 0 3 0; #X connect 27 0 8 0;
#N canvas 352 23 542 316 10; #X obj 311 210 pointer; #X obj 101 33 struct $1-rect float x float y float z float q; #X obj 106 88 filledpolygon 244 q 5 0 0 20 z 40 0; #X obj 162 235 append $1-rect x y z q; #X msg 311 185 traverse pd-data3000 , bang; #X msg 162 213 $1 $1 $1 $1; #X obj 162 191 random 300; #X obj 108 142 loadbang; #X obj 108 164 t b b b b b; #X connect 0 0 3 4; #X connect 4 0 0 0; #X connect 5 0 3 0; #X connect 6 0 5 0; #X connect 7 0 8 0; #X connect 8 3 6 0; #X connect 8 4 4 0;
Hallo, moritz hat gesagt: // moritz wrote:
i wonder for what is the first argument in [get], when i allways receive eitherway the content of the first created "polygon"?
The question rather is: How do you expect a [get SOMETHING ..] to act, if you send it a [pointer ANOTHERTHING], because that's what your patch does? As I understand it, the behaviour then is undefined and thus may give all kinds of results including a crash in the worst case. Thankfully currently it just gives nonsense results instead of crashing. The best thing of course would be to give no results at all and instead print a warning message, but I guess, Miller will implement this "LATER". ;)
Frank Barknecht _ ______footils.org_ __goto10.org__