help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] CObjects: the CIntSize


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] CObjects: the CIntSize
Date: Tue, 29 Jun 2010 14:52:43 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5

On 06/29/2010 01:39 PM, Dmitry Matveev wrote:
Hello Paolo and the list,

Browsing the CObject sources I've found the following:

CInt class>>  alignof [
     "Answer the receiver's required aligment"

     <category: 'accessing'>
     ^CIntSize
]

In the repl, "CInt alignof" results as 4 (an instance of SmallInteger).
But I did not found the declaration of the CIntSize. What is it? Is it
a constant or it's a class? How can I determine this value?

See init_c_symbols in libgst/dict.c.

CIntSize is just sizeof(int). It is a global variable in the CSymbols namespace.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]