Re: pointers to variables ?
- Posted by cjnwl Mar 06, 2023
- 1394 views
Thanks all for your responses, sample code, and insights into how variables are managed internally in euphoria.
Using SYMTAB in gawk (GNU-awk) is allowed, both reading and modifying values, but not creating new variables. And the ability to use this feature to emulate pointers is explicitly mentioned in the doc.
Gawk arrays are indeed associative arrays, there are no 0- or 1-indexed arrays as known in other languages. Maps seem to be the closest equivalent in OE, and so far I've been able to port other parts of my gawk code, which uses associative arrays extensively, to OE using maps, so I'll have to see how easily I can port my datalist functionalities too.