[Info-vax] VMS Basic strings class D vs class S

Dave Froble davef at tsoft-inc.com
Sun Feb 25 18:55:25 EST 2024


On 2/25/2024 4:33 PM, Arne Vajhøj wrote:
> If I have understood it correctly then VMS Basic
> strings use class D descriptors.
>
> That is very nice.
>
> But what happens if non-Basic code call Basic
> code with a string using a class S descriptor?
> For input/read? For output/write?
>
> Does the Basic runtime call some STR$ function that
> understands the difference between S and D and handle
> A properly? Or will I get a runtime error due to invalid
> string?
>
> Arne

I don't know the correct answer, but, at a guess, whatever is called to handle 
the string quite likely will evaluate the descriptor and do "the right thing". 
That would be my bet.  Otherwise, why have descriptors?

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list