Paul Wallich
12/19/2015 3:53:00 PM
On 12/19/15 7:42 AM, Anoop GR wrote:
> On Saturday, December 19, 2015 at 6:04:00 PM UTC+5:30, Anoop GR wrote:
>> Is there a general way to do this for any object - symbol, list, hash-table, string etc ?
>
> say for symbol 'foo, I am looking for a way to find the following output:
>
> 'FOO name 3 byte
> package 4 byte
> variable 4 byte
> function 4 byte
> attribute list 4 byte
> ----------------------
> total 19 byte
Is there a reason other than curiosity that you want this information?
Most implementations document how much space different kinds of object
take up, but in the vast majority of situations that's not information
that a Lisp programmer has to keep in mind, especially a beginning one.
paul