assign by reference (arrays)?

Giulio Mastrosanti giulio at cantoberon.it
Thu Mar 21 10:47:01 EST 2002


> 
> Hi Ben,
> 
> Pardon a Foole's dumb question; but what are you trying to
> accomplish?  Can you give me an example of how this is done in
> another programming environment?
> 

I believe Ben is thinking about variable variables, I would find it useful
too(a feature request...)

for example, on php programming, you can have a variable:

$variable = 10;

You put the name of a variable into another variable:

$variablename = "$variable1";

An operation like:

$$variablename++;

Will increment the value contained into $variable1

The $$ sign specifies the operation must be performed on the variable whose
name is contained into $variablename

Hope this was clear.. I'm sure not!!!

      Giulio




More information about the use-livecode mailing list