Re: Ambiguous documentation
- Posted by petelomax Mar 16, 2024
- 544 views
If you look at tokenize_string() at line 1154 in https://github.com/OpenEuphoria/euphoria/blob/master/include/euphoria/tokenize.e ,
it returns { tokens, ERR, ERR_LNUM, ERR_LPOS }. So that comment just means you should not pass the whole result from that, but res[1].
Perhaps a better way to word that might be:
Note that tokenize_string() and tokenize_file() return { tokens, ERR, ERR_LNUM, ERR_LPOS } and this routine only wants the res[1] from that.