[m-users.] Any way to write . or : as a character literal?

Jeremy W. Sherman jeremyw.sherman at gmail.com
Sun Dec 6 14:51:52 AEDT 2020


I was rather perplexed on finding that, while `'x'`, works fine for
the character literal x, `'.'` and `':'` fail to parse:

```
Syntax error at token ':': operator precedence error.
Syntax error at token '.': operator precedence error.
```

Since character literals are the same as single-character quoted
names, is there any way to escape or write either of these outside of
a circumlocution like `det_from_int(0':)`?

Thanks,
--
Jeremy W. Sherman
https://jeremywsherman.com/


More information about the users mailing list