Squirrel$ = chr$(65)

I have just written a loooong function which replicates Basic’s chr$() keyword: it takes an integer with an Ascii value and returns a character in a string.

Will someone please tell me I can yank my massive switch… case code with a simple Squirrel function or object method?

format("%c", ascii);

Hurrah! Thank 'ee

Or ascii.tochar() I think. The methods available on Squirrel’s built-in types – integer, string, etc. – are, for what can only be described as obscure reasons, documented under “default delegates”.

Peter