Hi Esteban.

2016-11-06 17:51 GMT+01:00 Esteban Lorenzano <estebanlm@gmail.com>:

height
"This method was automatically generated"
^handle doubleAt: 17

height: anObject
"This method was automatically generated"
handle doubleAt: 17 put: anObject

which of course does not work.
with my idea this will become like this:��

height
"This method was automatically generated"
^handle doubleAt: HEIGHT_OFFSET

height: anObject
"This method was automatically generated"
handle doubleAt: HEIGHT_OFFSET put: anObject

I have feeling that Slots could solve this problem really well and also improve the way how we work with external structures.��
If you saw how Ronie describes external structures then you could imaging what I am talking about.
For now on class side we always have #fieldDesc: method like:

SDL_Point>>fieldsDesc
"
self initializeAccessors
"
^#(
int x;
int y;
�� )

where code in comments generates accessors.
And with Ronie approach this description will go directly��to class definition:

NativeStructure��
�� ��subclass : #SDL_Point
�� ��layout : StructureLayout
�� ��slots: { #x &=> #int. #y &=> #int}
...
(I got example of Ronie definition from his paper��https://hal.inria.fr/hal-01353884/document).
So all offsets logic will go to one place StructureLayout and slots. And also we will not forced to use accessors anymore.

What you think?

Best regards,
Denis