[Info-vax] LLVM, volatile and async VMS I/O and system calls

Dave Froble davef at tsoft-inc.com
Mon Oct 4 17:56:02 EDT 2021


On 10/4/2021 1:37 PM, Simon Clubley wrote:
> On 2021-10-04, Dave Froble <davef at tsoft-inc.com> wrote:
>>
>> Can't you just agree that using such an operation when it is not
>> required is poor programming practice?
>>
>
> I was addressing the other issues raised in your post, not this one,
> but on the face of it, if copying of strings is always done by value
> these days, then it appears redundant and in an obviously deterministic
> way, provided there are no side effects from doing this.
>
> BTW, I don't know DEC Basic, but I have one question based on other
> languages. While copying a string in this way appears redundant based
> on what you are saying, are there any implicit type conversions that
> can be done by adding an empty string to the other value ?
>
> For example, can you convert an integer to a string in this way ?
>
> Simon.
>

No.

That whole story was to show that once a person learns something, when 
no longer necessary, it's hard to break the habit.

A string concatenation is not a trivial operation.  I hate to think of 
the wasted CPU cycles.

-- 
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