On Tue, 31 Dec 2024 19:01:24 +1100, Clement Clarke wrote:

>Over many years, I have brought up the C string problem.  Both it's speed
>and safety.  I developed some C macros which improve the situation, however
>I think that by simply introducing a new file type, say .VB like .EXE, many
>speed and safety issues can be corrected relatively simply, as well
>as reducing the electricity and cooling water needed to shunt 5 billion
>emails around the world each day.
> 
That's FILE DATA=RECORD, with RECFM=VBS, ad lib.
That's already in an extended attribute.  Don't further
overload the name space.


>Gradually, C and C++ could be changed internally to follow the excellent
>PL/I practice of having the length of variable length strings at the front
>of the strings which means searching for string terminators is not
>necessary.
>
That's not part of the language, but of the standard library, which is 
replaceable.

Note that the BPX1/BPX4 system calls do not depend on null-terminated strings.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to