🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #855

Re: Lib.Exec in TopSpeed Modula-2 2.00

#855
From: Peter.M..Perchansky Peter M. Per...
Date: Tue, 26 Jun 1990 14:50
36 lines
1627 bytes
Hello Jim:

In a msg dated 21 Jun 90  21:08:09, Jim Long said:
**********************BEGIN QUOTE*****************************

In a message of <21 Jun 90  07:57:50>, Peter M. Perchansky
(1:273/101) writes:

...
 > VAR
...
 >    it  : ARRAY [0..50] OF CHAR;
...
 >    AssignStr ("PROGRAM=WORKS", it); (* assign string &
null-term *)
...
 >    (* Note:  AssignStr is a procedure I wrote to assign a
string, and 
 >null-terminate the string *)
...

Your compiler doesn't allow string assignments?  It's been my
experience that zero-based ARRAYs OF CHAR are
assignment-compatible with constant character arrays of equal or
lesser size.  E.g., FST allows:
***********************END QUOTE******************************

    Jim, TopSpeed Modula-2 does allow string assignmnents; but, depending on the lenght of the string as compared to the maximum contents of the string, the string may not be null terminated.

    My AssignStr procedure guarantees that all strings are null terminated.



--  
uucp: uunet!m2xenix!puddle!273!101!Peter.M..Perchansky
Internet: Peter.M..Perchansky@f101.n273.z1.fidonet.org
Technical Details
Message-ID: <681.268913C5@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!f101.n273.z1.fidonet.org!Peter.M..Perchansky

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!f101.n273.z1.fidonet.org!Peter.M..Perchansky
From: Peter.M..Perchansky@f101.n273.z1.fidonet.org (Peter M. Perchansky)
Newsgroups: comp.lang.modula2
Subject: Re: Lib.Exec in TopSpeed Modula-2 2.00
Message-ID: <681.268913C5@puddle.fidonet.org>
Date: 26 Jun 90 14:50:47 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 1:273/101 - Schizophrenia, Fleetwood PA
Lines: 36