<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I'm still wrestling with this. I have found a few options that work and they all have glaring problems.<br><br><br>VAR macho_header32_t_fields := ARRAY [0..6] OF field_t{<br> field_t{ "magic", 0, 4, enum_table := EnumTable(macho_magic_names)},<br>...<br> field_t{ "flags", 24, 4}};<br><br><br>1) I shouldn't have to give the size of the array.<br>2) I shouldn't have to copy the enum table to make it an indexable array.<br><br><br>Disappointing..<br><br><br> - Jay<br><br><br><hr id="stopSpelling">From: jay.krell@cornell.edu<br>To: m3devel@elegosoft.com<br>Date: Mon, 27 Dec 2010 02:11:28 +0000<br>Subject: [M3devel] pointers/arrays?<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
a: UNTRACED REF T;<br>i: INTEGER;<br><br><br>a[i] ?<br>(a + i)^ ?<br><br><br>Or I'm really stuck with<br>LOOPEHOLE(a + i * BYTESIZE(a^), UNTRACED REF T)<br><br><br>Seems kind of stinky.<br>I've got some nice efficient readable safe-enough C and it doesn't seem to translate well easily efficiently to Modula-3.<br><br><br> - Jay<br><br> </body>
</html>