Character codes: Difference between revisions

Content added Content deleted
No edit summary
Line 1,046: Line 1,046:
fansh> 'a'.toInt
fansh> 'a'.toInt
97</syntaxhighlight>
97</syntaxhighlight>

=={{header|Fennel}}==
<syntaxhighlight lang="fennel">
(string.byte :A) ; 65
(string.char 65) ; "A"
</syntaxhighlight>

=={{header|Forth}}==
=={{header|Forth}}==
As with C, characters are just integers on the stack which are treated as ASCII.
As with C, characters are just integers on the stack which are treated as ASCII.