From: "Paul Raulerson" <paul.rauler...@me.com>
Sent: Friday, February 09, 2018 9:46 AM
Because they don’t have any special knowledge of strings,
The only "special knowledge" of strings that is required is that
a string is composed of bytes.
only untyped data. And the lengths of the data they operate on
is fixed and defined at compile time, not at run time.
Whether the length of a string is known at compile time or at run time
is irrelevant.
The data is a string. And the instruction(s) that operate on them are
string instructions.
How about taking as a definition of a string any text that SuperC will search for? Or a text
string in ISP?
Obviously, what a string is and how it is defined varies from language to language. But usually
they are not defined as binary data. Unicode excepted.
Just by the way, a NULL as a string terminator seems to make sense.
And if the string _contains_ null characters?
MVST (Move String), CLST (Compare String), SRST (Search String)
are all instructs and all work with null terminated strings.
Translate Extended is needed to work with Unicode without loosing one’s mind…
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus