[REBOL] Re: Sameness - a pragmatic approach.
From: lmecir:mbox:vol:cz at: 11-Feb-2003 16:55
Hi Gabriele,
interesting application of SAME? !
----- Original Message -----
From: "Gabriele Santilli"
...
> I was just worried of (wrong)
> implications the former might suggest to a casual reader: one
> thousand "1"s will consume the same amount of memory than one "1"
> because they are all the same value.
This is really wrong, see below:
; create an object
o: make object! []
; let's have 1000 identical o's
block: make block! 0
insert/dup block o 1'000
Although we have thousand identical O's, the memory consumption is bigger than for one
O exactly like in the case of 1's. Interestingly enough, the memory consumed additionally
is the same in both cases.
Regards
-L