Fun (was Re: Cubist's first bug report)

Terence Heaford t.heaford at icloud.com
Mon Jun 6 06:13:30 EDT 2016


> On 6 Jun 2016, at 06:33, Monte Goulding <monte at appisle.net> wrote:
> 
> Hmm… certainly an interesting idea:
> 
> put 1,2,3 into tVar
> myAdd 5, item 3 of tVar
> 
> command myAdd pToAdd, @xAddTo
>   put pToAdd+xAddTo into xAddTo
> end myAdd
> 
> tVar = 1,2,8
> 
> I doubt we should get our hopes up Dar ;-)
> 
> Of course if we can do that it means ruling out what I was suggesting as the chunk could mutate from one reference to the next. The case of a command mutating a single chunk is much simpler as it’s just a case of retaining the evaluation.



Not read the context of this thread but…….

on mouseUp

put 1,2,3 into tVar

myAdd 5, 3, tVar

put tVar

end mouseUp


command myAdd pToAdd, chunkNum, at xAddTo

put pToAdd + item chunkNum of xAddTo into item chunkNum of xAddTo

end myAdd



Terry


More information about the use-livecode mailing list