[Info-vax] A SYS$ version of F$EDIT

Arne Vajhøj arne at vajhoej.dk
Sun Jun 2 21:03:09 EDT 2019


On 6/2/2019 8:40 PM, Dave Froble wrote:
> On 6/2/2019 7:09 PM, Arne Vajhøj wrote:
>> On 6/2/2019 6:49 PM, seasoned_geek wrote:
>>> True and despite the claims of "most" of the functionality being in
>>> DBASIC$EDIT and STR$ routines, it's not exactly "all" or at least not
>>> exactly all obvious.
>>
>> DBASIC$EDIT is missing LOWERCASE and UNCOMMENT.
> 
> Give the function a bit of a break.  This is basically the Basic+ 
> CVT$$() function from prior to 1973.

Objectively those two are present in F$EDIT and missing in DBASIC$EDIT.

Why and whether that is a problem or not does not change the
reality.

> Nor am I sure just what "uncomment" may do?  Does it recognize the 
> comments from all languages?  Or just DCL comments?

Documentation does not say.

I suspect DCL only.

And a little test does not invalid that:

$ write sys$output f$edit("xx ! yy", "UNCOMMENT")
xx
$ write sys$output f$edit("xx # yy", "UNCOMMENT")
xx # yy
$ write sys$output f$edit("xx ' yy", "UNCOMMENT")
xx ' yy
$ write sys$output f$edit("xx // yy", "UNCOMMENT")
xx // yy
$ write sys$output f$edit("xx /* yy */", "UNCOMMENT")
xx /* yy */
$ write sys$output f$edit("xx (* yy *)", "UNCOMMENT")
xx (* yy *)

Arne




More information about the Info-vax mailing list