|
Post by rikky on Nov 6, 2023 16:42:02 GMT 1
Hello. I'm using a fossil from a short while ago. Acording to the documentation : TOASCII$(string$)
Returns the same string of which each byte has bit 7 set to 0. Note that this can lead to unpredictable results. Technically PRINT TOASCII$("Hello world") should return Hello world
for there is no strange character in there. But I get : ERROR: signal for SEGMENTATION FAULT received - memory invalid or array out of bounds? Try to compile the program with TRAP LOCAL to find the cause.
I can hardly imagine how you can come to such a sentence from 'Hello world' by cutting off bit 7 . Rik.
|
|
|
Post by Pjot on Nov 6, 2023 18:42:29 GMT 1
Thanks Rikky, The TOASCII$ function was being tested by using variables only, and not string literals. Obviously, a string literal appearing hard coded in the program cannot be changed Therefore, the implementation was redesigned from scratch to make the function work for string literals. You can find the latest beta here. BR, Peter
|
|