On 06/06/2010 09:35 AM, Paolo Bonzini wrote:

> CCompound subclass: CPackedStruct [
> 
>     <shape: #word>
>     <category: 'Language-C interface'>
>     <comment: nil>
> 
>     CPackedStruct class >> declaration: array [
>         "Compile methods that implement the declaration in array."
> 
>         <category: 'subclass creation'>
>         self
>             declaration: array
>             inject: self superclass sizeof
>             into: [:oldOffset :alignment | oldOffset]
>     ]

      compileSize: size align: alignment [
          super compileSize: size align: 1
      ]

> ]


is there a place for CPackedStruct in the GST Kernel? Somewhere else?

_______________________________________________
help-smalltalk mailing list
help-smalltalk@gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to