🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4942

Re2: Clever way to deal with this?

#4942
From: "JAE ", Juergen A. Erhard
Date: Wed, 14 Feb 1990 13:59
49 lines
2001 bytes
Hi folks,

many, many comments on marks original msg I've read. And now, I'd like
to (re)add my 2 cents worth to it.

All (Mark@ecncdc, stephen, robert, dave) came up with some dynamic
allocation scheme. Me too.
Only Tim thought of something else, but that's after the second msg
from Mark.

My thoughts now:
  Best thing to do in M2 would be:
    record
      num:CARDINAL;
      chars:ARRAY (.0..<some limit>.) OF CHAR;
    end;

On Tim's msg:
  Stupid thing, this one:
>          charPtr := SYSTEM.ADR(buffer.text[i]);
>          InOut.Write(charPtr:)
Why not do:
  InOut.Write(buffer.text i );

See the point, Tim?
> Hope this adds something to the discussion.
Sure...

Mark, what do you mean with
> The actual characters are fixed in length, but <...>
????
Do you determine the storage size at run time, too???

Well, I'm writing an editor myself, and it uses some representation
similar to the dynamic ones the others layed out. If only I could upload
it onto this IBM here...

Maybe this msg wasn't as clear as I'd like it to be, but sometimes (like
today) I'm a bit confused (and confusing)...

                                          -jae

========================================================================
Juergen A. Erhard
eMail: uk4h@dkauni2.bitnet
phone: (+49) 721/591602
"You know that it's monday when you wake up and it's tuesday."
                                                    Garfield
DISCLAIMER: none, I don't speak legalese.
Technical Details
Message-ID: <"90-02-14-14:03:50.03*UK4H"@DKAUNI2.BITNET>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!tut.cis.ohio-state.edu!ucbvax!DKAUNI2.BITNET!UK4H

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!tut.cis.ohio-state.edu!ucbvax!DKAUNI2.BITNET!UK4H
From: UK4H@DKAUNI2.BITNET ("JAE ", Juergen A. Erhard)
Newsgroups: comp.lang.modula2
Subject: Re2: Clever way to deal with this?
Message-ID: <"90-02-14-14:03:50.03*UK4H"@DKAUNI2.BITNET>
Date: 14 Feb 90 13:59:45 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: Modula2 List <INFO-M2%UCF1VM.BITNET@PSUVM.PSU.EDU>
Organization: The Internet
Lines: 49
X-Unparsable-Date: Wed, 14 Feb 90 14:03:00 LCL