Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Alignment Issues with *ManagedStruct?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leopold Toetsch  
View profile  
 More options Feb 4 2004, 4:50 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Wed, 4 Feb 2004 09:52:34 +0100
Local: Wed, Feb 4 2004 3:52 am
Subject: Re: Alignment Issues with *ManagedStruct?

Chromatic <chroma...@wgz.org> wrote:
>    set layout['member'], .DATATYPE_INT
>    push layout, 0
>    push layout, 0

Pushing zero as offset should do The Right Thing, that is proper
aligning the item. Tighter packed structures can be achieved with
explicit offset parameters.

Its basically an one-liner in unmanagedstruct.pmc:205

 if (offs == 0 && toff % data_size)
  advance (offs, toff) to data_size alignment

> Is this one for the TODO list, or did I catch a pumpking in good
> humours?

Takers wanted :)

> -- c

leo

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.