Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Allocation? Function!

 [1/2] from: robbo1mark::aol::com at: 3-Aug-2001 5:58


Just trying to guage the lists opinion on the utility of a new function proposal ALLOCATION? This would return the allocated size of series! values and would operate as follows.
>> a: make block! 16
== []
>> ALLOCATION? a
== 16
>> insert a 1
== [1]
>> ALLOCATION? a
== 16
>> ALLOCATION?/used a
== 1
>> ALLOCATION?/free a
== 15 What do you think? would this be useful? cheers, Mark Dickson

 [2/2] from: ptretter:charter at: 3-Aug-2001 5:38


Sounds like a great idea to me. I know no way of getting the memory allocation with the current implementation. May give us a better handle on memory handling withing REBOL. Paul Tretter