Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 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