This is draft pull request that introduces dict objects, which are tuples with named fields. This is an important feature in modern programming languages that Pop-11 will significantly benefit from. Poplog already has properties (see REF PROPS) but these are suitable for large hash-tables.
At the same time I introduce a low-level mechanism for closures with named fields (frozvals) rather than positionally indexed fields. This mechanism will be used in a future pull-request to add default-named arguments to Pop-11 in an elegant fashion.
This is draft pull request that introduces
dict
objects, which are tuples with named fields. This is an important feature in modern programming languages that Pop-11 will significantly benefit from. Poplog already has properties (see REF PROPS) but these are suitable for large hash-tables.At the same time I introduce a low-level mechanism for closures with named fields (
frozvals
) rather than positionally indexed fields. This mechanism will be used in a future pull-request to add default-named arguments to Pop-11 in an elegant fashion.TO DO:
compile_mode :pop11 +strict; section; ... endsection;
$
syntax