MOO-cows Mailing List Archive
Re: value bytes of error codes
Date: Mon, 1 Apr 1996 10:43:51 PST
From: Pavel Curtis <firstname.lastname@example.org>
In-reply-to: Judy Anderson's message of "Sat, 30 Mar 1996 21:09:42 PST" <199603310509.VAA14729@Xenon.Stanford.EDU>
Judy Anderson writes:
> Perhaps I will change the definition of value_bytes() to be more intuitive
> in 1.8.0p3, by adding 8 to all values it returns. Of course, I will also
> make the corresponding change in object_bytes() to make sure no byte of
> memory is double-charged.
> How would I modify the in-moo :object_bytes calculation?
You would remove the charge for (8 * (number of properties)), since that charge
is taken care of by the iteration over all property values. You would also
change 8 for each clear property.
Subject Index |