C# Class kOS.Safe.Compilation.OpcodeEval

Replaces the topmost thing on the stack with its evaluated, fully dereferenced version. For example, if the variable foo contains value 4, and the top of the stack is the identifier name "$foo", then this will replace the "$foo" with a 4.
Inheritance: Opcode
Afficher le fichier Open project: KSP-KOS/KOS

Méthodes publiques

Méthode Description
Execute ( ICpu cpu ) : void
OpcodeEval ( ) : System
OpcodeEval ( bool bareOkay ) : System

Eval top thing on the stack and replace it with its dereferenced value. If you want to allow bare words like filenames then set argument bareOkay to true when constructing.

Method Details

Execute() public méthode

public Execute ( ICpu cpu ) : void
cpu ICpu
Résultat void

OpcodeEval() public méthode

public OpcodeEval ( ) : System
Résultat System

OpcodeEval() public méthode

Eval top thing on the stack and replace it with its dereferenced value. If you want to allow bare words like filenames then set argument bareOkay to true when constructing.
public OpcodeEval ( bool bareOkay ) : System
bareOkay bool
Résultat System