>So my question:  how can I have the contents of a variable point to a
>variable name?  If there isn't an indirection operator in MC already
>(which I don't think there is) , maybe it'd be nice to have one?  (It'd
>be GREAT for me to have one... and yes, I know I could be putting all the
>values in some array or chunk of text like  playerHandValues[quickHand]
>for
>player2Hand.  I'd rather see if there's an indirection thing first.)
>
>So... what about some kind of indirection operator?  I know this elevates
>part of the scripting language to a very complex level... but... it WOULD
>be useful, you must admit!

Karl,

 I'd really say this is much easier achieved using an array. Since 2.3 is
supposed to allow passing an array by reference you could simply use an
array and modify that. You could also just use a global. I don't see a real
need for pointers here.

 Pass-by-reference already works, though, so why don't you just call

processPlayer player1Hand

which is defined as

on processPlayer @thePlayer
  -- generic code goes here
end processPlayer

Cheers,
-- M. Uli Kusterer

------------------------------------------------------------
             http://www.weblayout.com/witness
       'The Witnesses of TeachText are everywhere...'

--- HELP SAVE HYPERCARD: ---
Details at: http://www.hyperactivesw.com/SaveHC.html
Sign: http://www.giguere.uqam.ca/petition/hcpetition.html

Reply via email to