Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_mem
#12
(01-01-2025, 10:45 AM)SMcNeill Wrote: Note: I *still* think we need a simple _MEMFREE option that frees all old blocks, just as CLOSE does all file handles.  Smile
I don't think that's a good idea. It reminds me of C++ where the requested memory is automatically released; as far as I can remember.

That's one of the reasons why, as I've read, many C programmers only use parts of C++. I myself have used it in C, where one don't want that values in memory deleted because one need them again in the rest of the program. This situation occurs much more often with a professional programmer.

Main conclusion: I don't think it's a good idea to release all memory blocks with just one command. Any reserved memory should only be released explicitly, as in C. That's part of the programmer's job . . . even if it "hurts".
Reply


Messages In This Thread
_mem - by Jack - 12-31-2024, 09:52 PM
RE: _mem - by DSMan195276 - 01-01-2025, 07:11 AM
RE: _mem - by Jack - 01-01-2025, 09:08 AM
RE: _mem - by Jack - 01-01-2025, 10:01 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:18 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:10 AM
RE: _mem - by Jack - 01-01-2025, 10:27 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:36 AM
RE: _mem - by Jack - 01-01-2025, 10:40 AM
RE: _mem - by SMcNeill - 01-01-2025, 10:45 AM
RE: _mem - by Kernelpanic - 01-01-2025, 11:55 PM
RE: _mem - by DSMan195276 - 01-01-2025, 11:13 PM
RE: _mem - by DSMan195276 - 01-02-2025, 12:27 AM
RE: _mem - by hsiangch_ong - 01-09-2025, 01:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Loading from file into _MEM? and LEN a TYPE... Unseen Machine 9 958 08-03-2025, 02:55 AM
Last Post: SMcNeill
  error on function returning _mem Herve 5 683 07-05-2025, 08:06 PM
Last Post: hsiangch_ong
  Question about _MEM blocks and arrays FCS_coder 19 2,608 06-15-2025, 10:09 AM
Last Post: TempodiBasic
  Clarification using _MEM TerryRitchie 5 1,293 01-23-2024, 07:45 PM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)