Re: [F-Script-talk] Arrays size mismatch question.
Brought to you by:
pmougin
From: Stephen C. G. <squ...@ma...> - 2004-12-16 00:07:06
|
Or... with the white text turned black... > {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} error: arrays must be of same size > {1 , 2 } @+@{1, 2, 3,4} error: arrays must be of same size > {1 , 2, 3, 4, 5, 6} at: {true, false} error: indexing with an array of booleans of bad size > {1 , 2} at: {true, false, true} error: indexing with an array of booleans of bad size > --Steve On Dec 15, 2004, at 7:03 PM, Stephen C. Gilardi wrote: > I ran your tests using fscript 1.2.7 and got these results: > > > {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} > > error: arrays must be of same size > > > {1 , 2 } @+@{1, 2, 3,4} > > error: arrays must be of same size > > > {1 , 2, 3, 4, 5, 6} at: {true, false} > > error: indexing with an array of booleans of bad size > > > {1 , 2} at: {true, false, true} > > error: indexing with an array of booleans of bad size > > > > > Good luck with your presentation. > > --Steve > > On Dec 15, 2004, at 6:29 AM, Noa Grinblat wrote: > >> Hi . >> I am taking a course, in which I will perform a presentation about >> the OOPAL article and fscript language. Unfortunately I have no >> access to a computer running Mac OS and so I can't try to work with >> fscript on my own. I have a couple of questions, that were really >> easy to solve if this wasn't the situation, that I hoped someone here >> could help me answer. What would happen in the following cases, where >> we have 2 arrays, with different sizes: >> 1. {1 , 2, 3, 4, 5, 6} @+@{1, 2, 3} >> 2. {1 , 2 } @+@{1, 2, 3,4} >> 3. {1 , 2, 3, 4, 5, 6} at: {true, false} >> 4. {1 , 2} at: {true, false, true} >> >> Thanks! |