Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Variable-size-Get/Factor/variable-size-get.factor
Normal file
11
Task/Variable-size-Get/Factor/variable-size-get.factor
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
USING: layouts memory prettyprint ;
|
||||
|
||||
! Show size in bytes
|
||||
{ 1 2 3 } size . ! 48
|
||||
1231298302914891021239102 size . ! 48
|
||||
|
||||
! Doesn't work on fixnums and other immediate objects
|
||||
10 size . ! 0
|
||||
|
||||
! Show number of bits in a fixnum
|
||||
fixnum-bits . ! 60
|
||||
Loading…
Add table
Add a link
Reference in a new issue