TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Frank Adam
from: Michael Stapleton
date: 1996-11-15 12:26:00
subject: Re: Auto string-length d

-=> On 08 Nov 96  11:51:02 you wrote to me <=-

Hi Frank,

FA> OOP is still C , it's just more object oriented :)

PW> Yeah, but if I start using classes and objects all over the
PW> place and then start asking about them in HERE...  <:-\

MS> True, we'll flame you.  :) OTOH, it's quite possible to do OOP
MS> without C++; an OOP oriented language like C++ just keeps things
MS> less cluttered by hiding the details.

FA> Yeah,but those derived structures are driving me bananas.;-)

Fair enough.  FWIW, I'm almost totally ignorant of C++, but I have
used an OOP language on the Amiga called E.

PW> I was taught to "hate" global variables...  Come to think of it
PW> -- why

FA> I think it's just that, having the variables declared near the
FA> procedure using them, makes the code more readable.

MS> Agreed, although comments can help, too.  :)

FA> Oh alright, if you want to make it easy for everyone ;-)

Yeah! :)

PW> Damn.  What's ISO's address?  I'll write to them and tell them
PW> to put this heapwalk() function (and the rest of the
PW> heap-related functions of

FA> :-)

MS> Interesting...  I wonder what it'd do on my Amiga...  :) I've
MS> seen PC programmers talking about "the heap" and I guess it's
MS> where malloc() gets its memory, but the rest is a mystery.
MS> Memory allocation is more anarchic over here.  :)

FA> It would still have to return handles of blocks to the program's
FA> RTL ?

I'm not exactly clear on what you mean by the program's RTL.

There are several varieties of memory allocation in the Amiga OS, as
well as the standard allocation functions provided by the compiler.
If I use malloc() or AllocVec(), then I can find the blocksize at a
negative offset from the returned pointer.  OTOH, if I use
AllocMem() or AllocEntry(), I have to keep track of the size myself,
as it isn't recorded by the system.  Also, there is a function
called AllocRemember, which returns size & other information via a
structure double pointer.

FA> Does the Amiga "run" or "emulate" DOS ?  (or neither ?)

Neither, we have our own AmigaDOS.

Michael Stapleton of Graphic Bits.

 * AmyBW v2.10 *
--- AdeptXBBS v1.07f (Registered)
* Origin: Mach One BBS (3:713/615)
SEEN-BY: 633/267 270
@PATH: 713/317 711/808 50/99 635/728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.