<variable> -> <variable>
Operators: Assign Variable Reference "->"Assign variable reference to Glossary: Variable, var_refvariable.
Flow control: if … then Flow control: try … thenThe right-side Glossary: Operator Glossary: Operandoperand <variable> may be of any Data Types Invariants: Data typesdata type. Flow control: if … then Flow control: try … thenThe Data Types Invariants: Data typesdata type of Flow control: if … then Flow control: try … thenthe left-side Glossary: Operator Glossary: Operandoperand is ignored. It becomes a reference Glossary: Variable, var_refvariable.
After having assigned a target to a reference Glossary: Variable, var_refvariable, all references to List functions: thisthis Glossary: Variable, var_refvariable actually refer to Flow control: if … then Flow control: try … thenthe assigned destination. Even "Instructions: deldel <ref_var>" refers to List functions: thisthis destination.
Setting a reference to a reference Glossary: Variable, var_refvariable makes it point directly to Flow control: if … then Flow control: try … thenthe target's target.
Setting a reference to an enclosing Data Types: Lists and arrays Item selector "[]": Lists Glossary: list, list_vallist of Flow control: if … then Flow control: try … thenthe reference Glossary: Variable, var_refvariable is Operators: Bitwise Not "~" Operators: Boolean Negation "!"not allowed.
e.g.:
vipsi> Instructions: var How does VScript::Value() work?: Var*&var a=0,b=1,p
vipsi> p->a
vipsi> List functions: globals Shell Immediate Commands: globalsglobals = { a=0, b=1, p=0 }
vipsi> p->b
vipsi> List functions: globals Shell Immediate Commands: globalsglobals = { a=0, b=1, p=1 }
vipsi> p->List functions: globals Shell Immediate Commands: globalsglobals
***** reference Glossary: Variable, var_refvariable is child of target
Operators: Bitwise Not "~" Operators: Boolean Negation "!"Note: Operators: Assignment "=" Built-in operators: Assignments:Assignment Vipsi command syntax: Operators Operators Glossary: Operatoroperators Flow control: do … loopdo Operators: Bitwise Not "~" Operators: Boolean Negation "!"not Flow control: returnreturn a result Glossary: Valuevalue. There are syntactical ambiguities with Flow control: if … then Flow control: try … thenthe "=" Numeric functions: signsign e.g. in Literals: List literals Lists and arrays: List literalslist literals. List functions: thisThis also allows named items in other places, e.g. passing named Vipsi command syntax: Arguments Glossary: Argumentsarguments to Vipsi command syntax: Procedures Data Types: Procedures Glossary: Procedureprocedures for a obj-C-like syntax. (planned for Flow control: if … then Flow control: try … thenthe future)
|