Re: A reference to
Re: A reference to
- Subject: Re: A reference to
- From: "Serge Belleudy-d'Espinose" <email@hidden>
- Date: Mon, 4 Jun 2001 06:25:20 +0200
At 16:55 -0700 3/06/01, Michelle Steiner wrote:
>
I haven't used this feature of Applescript because I'm not really sure
>
what is is and does.
Excepted for the problem I mentionned before - and which seems to be solved in 1.6, thanks to answers I received - there's an obvious advantage of using 'a reference to' in some situation.
Let me put my example back:
>
set xList to {}
>
>
repeat with i from 1 to 5000
>
set xList's end to i
>
end repeat
>
>
repeat with j from 1 to xList's length
>
xList's item j
>
end repeat
>
>
set rxList to a reference to xList
>
>
repeat with k from 1 to xList's length
>
rxList's item k
>
end repeat
Saying 'notice the difference between the j and the k loops' is like saying 'notice the elephant in front of you' :)
This is why I would so like to use this construct everywhere. I am also very curious to have more technical explanations - from the 'big names'? - on how it works and why it is somewhat broken in 8.6/1.3.7
Anyway, thanks for the answers.
Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod
// // //
http://www.ijm.jussieu.fr/ Univ. Jussieu - Paris
//\//\//\\