Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Freeing memory used by arrays

by duff (Parson)
on Dec 04, 2003 at 15:20 UTC ( #312214=note: print w/replies, xml ) Need Help??

in reply to Freeing memory used by arrays

It also says that the memory doesn't always get free because not any operating systems support this. I find this strange as I've never had this problem in other languages.

What other programming languages have you used? Any language that implements its own memory management system (python, lisp, scheme, etc.) will exhibit similar behavior. It's only the languages like C, C++, etc where you have fine control over memory allocation/deallocation where you mayn't see this behavior. But even then, it depends on how the language is implemented. Most C implementations (for instance) won't exhibit this behavior, but as soon as you're using a C interpreter that might have some memory management scheme, all bets are off.

Replies are listed 'Best First'.
Re: Re: Freeing memory used by arrays
by monktim (Friar) on Dec 04, 2003 at 15:29 UTC
    I primarily use C++. Before that I primarily used C and before that PL/I. Before that I used a lot of stuff that may not have really managed memory excepting 360/370 assembler :).
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://312214]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2023-03-21 08:56 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (59 votes). Check out past polls.