Peter.M..Perchansky@f101.n273.z1.fidonet.org (Peter M. Perchansky) (06/26/90)
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