WIP: add a Val struct as an input/output when calling a function

This commit is contained in:
2024-12-11 17:04:05 +01:00
parent 079a62c230
commit 6e2fe34a5c
2 changed files with 153 additions and 142 deletions

View File

@@ -145,6 +145,10 @@ struct Stack
struct Env
{
// a result consists of a string and a boolean value
// output stream
pt::Stream & out; // OLD INTERFACE a reference to res.stream
// table of parameters
// the table can be empty
std::vector<Val> & params;
@@ -156,9 +160,6 @@ struct Env
// old interface but still available
//
// a result consists of a string and a boolean value
// output stream
pt::Stream & out; // OLD INTERFACE a reference to res.stream
// return value from a user's function (default false if not set directly by the function)
//bool res;