🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #849

AssignStr

#849
From: George Emery
Date: Tue, 26 Jun 1990 04:54
17 lines
1203 bytes
AssignStr (or some equivalent) is usually used to assign an ARRAY OF CHAR
to another which has a different range of indices.  The following code
fragment works iff HIGH(a) = HIGH(b) (and maybe only if the indices exactly
match):

a := "this is one string";
b := "this is another";
b := a;

Instead of fighting a compiler error, one merely uses AssignStr(b, a) in place
of b := a.  The compilers which provide a string module include this as one
of the first functions.


--  
uucp: uunet!m2xenix!puddle!369.42!George.Emery
Internet: George.Emery@p42.f369.n105.z1.fidonet.org
Technical Details
Message-ID: <557.2687FA61@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p42.f369.n105.z1.fidonet.org!George.Emery

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!ux1.cso.uiuc.edu!brutus.cs.uiuc.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!p42.f369.n105.z1.fidonet.org!George.Emery
From: George.Emery@p42.f369.n105.z1.fidonet.org (George Emery)
Newsgroups: comp.lang.modula2
Subject: AssignStr
Message-ID: <557.2687FA61@puddle.fidonet.org>
Date: 26 Jun 90 04:54:28 GMT
Sender: ufgate@puddle.fidonet.org (newsout1.26)
Organization: FidoNet node 1:105/369.42 - TECHbooks One, Beaverton OR
Lines: 17