Re: CyrekSoft announcement and "DISCARD"
- Posted by Hawke <mdeland at NWINFO.NET> Sep 24, 1998
- 623 views
Ralf Nieuwenhuijsen wrote: >I was under the impression, that after the last use of >a variable the memory was freed. >(well,. it never ever gets freed until ex.exe ends, >however, it does free it internally, in other words, >make it available for futher use by Euphoria itself only) urmmm... that would be bad, if i understand you correctly. talking psuedocode here, lemme ask a question about the following: sequence mary mary = repeat("mary was a little lamb",100000) system("mem.bat") mary = {} system("mem.bat") where mem.bat simply told you how much memory was available on your system, and paused for keypress. now, you are saying that if the first execution of mem.bat (which is after the huge sequence mary was allocated) told you that you had 25meg of 32meg free (example!), then the second execution of mem.bat (which is after mary is "freed") will also tell you that you have 25meg of 32meg free? i hope not. that *completely* violates the definition of dynamic memory allocation. i could understand if a certain core amount was reserved for euphoria and a modicum of data to be held within for speed and efficiency reasons... like a couple hundred K or so for some ints and atoms and small sequences was always held... but this is not that case. this is a case that should defnly 100% be returned to the *system*, not just EU but the *system*. or is my interpretation of what you said ralf not correct? --Hawke'