Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
|
|
@ -1,20 +1,3 @@
|
|||
{{omit from|AWK}}
|
||||
{{omit from|Clojure}}
|
||||
{{omit from|E}}
|
||||
{{omit from|gnuplot}}
|
||||
{{omit from|Groovy}}
|
||||
{{omit from|GUISS|Does not have variables.}}
|
||||
{{omit from|Java}}
|
||||
{{omit from|JavaScript}}
|
||||
{{omit from|LaTeX}}
|
||||
{{omit from|Logtalk}}
|
||||
{{omit from|Make}}
|
||||
{{omit from|Maxima}}
|
||||
{{omit from|NetRexx}}
|
||||
{{omit from|PlainTeX}}
|
||||
{{omit from|XSLT}}
|
||||
{{omit from|Unlambda|Does not have variables.}}
|
||||
|
||||
Demonstrate how to get the size of a variable.
|
||||
|
||||
See also: [[Host introspection]]
|
||||
|
|
|
|||
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