From: "Paul Raulerson" <paul.rauler...@me.com>
Sent: Friday, February 09, 2018 1:03 PM


On Feb 8, 2018, at 7:31 PM, Robin Vowels <robi...@dodo.com.au> wrote:

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.

Seriously?

Seriously.

Just haven’t to disagree there. From your point of view integers and character data and strings and floating point values are the same thing, right?

No they are not. I never said that they were.

Because you can move character them all the same way?

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.

Nope, but you are as welcome to your opinion as I am to mine.  :)

You are being ridiculous.

Question - why do you think IBM added string specific instructions if MVC is all one ever really needs?

IBM can add any kind of instruction that it likes.
It didn't need to add specific instructions to deal with null-terminated 
strings.
MVC, MVCL are prefectly good for for handling strings.

IBM used them in all its compilers for handling all kinds of text (i.e., 
strings).

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.

Image data consists of arbitrary characters.  It may contain null characters,
and plenty of them.

Just by the way, a NULL as a string terminator seems to make sense.

And if the string _contains_ null characters?

Then it isn’t a string - unless of course, the null marks the end of the string.

I just said that it didn't.

MVST (Move String), CLST (Compare String), SRST (Search String)
are all instructs and all work with null terminated strings.


So?  Also will MVC, MVCL, MVI, CLC, TRT, etc

Translate Extended is needed to work with Unicode without loosing one’s mind…

And TRT will handle null-terminated strings, as well as other kinds.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to