March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/*REXX program demonstrates (see the penultimate statment) how to */
|
||||
/*REXX program demonstrates (see the penultimate statement) how to */
|
||||
/* to find the size (length) of the value of a REXX variable. */
|
||||
|
||||
/*REXX doesn't reserve any storage for any variables, as all variables */
|
||||
|
|
|
|||
5
Task/Variable-size-Get/Ruby/variable-size-get.rb
Normal file
5
Task/Variable-size-Get/Ruby/variable-size-get.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
require 'objspace'
|
||||
|
||||
p ObjectSpace.memsize_of("a"*23) #=> 0
|
||||
p ObjectSpace.memsize_of("a"*24) #=> 25
|
||||
p ObjectSpace.memsize_of("a"*1000) #=> 1001
|
||||
Loading…
Add table
Add a link
Reference in a new issue