[M3devel] Modula-3 bitfields
Jay
jay.krell at cornell.edu
Sun Aug 26 04:59:26 CEST 2012
Other languages let you have "properties" that let you hide get/set functions behind field access syntax...
- Jay (briefly/pocket-sized-computer-aka-phone)
On Aug 25, 2012, at 1:56 PM, Dragiša Durić <dragisha at m3w.org> wrote:
> I am in no doubt about general inadequacies of C et al…
>
> What I hate is an idea of setters and getters for my bitfields. With pragma, compiler generated load/store will behave as needed. Everything transparent and just-working.
>
> --
> Divided by a common language
>
> Dragiša Durić
> dragisha at m3w.org
>
>
>
>
> On Aug 25, 2012, at 10:20 PM, Jay K wrote:
>
>> Which brings me back to ...array of bytes, very clear, very portable...
>>
>> If you need compactness but not exact layout, C and Modula-3 do fine.
>> If you need a portable predictable layout, other than an array of bytes, they both largely fail.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20120825/4bfae672/attachment-0002.html>
More information about the M3devel
mailing list