Article View: borland.public.csharpbuilder.compiler
Article #3Re: Initializing a Array of Classes.
From: Marc Rohloff TeamB
Date: Fri, 06 Aug 2004 21:24
Date: Fri, 06 Aug 2004 21:24
29 lines
1559 bytes
1559 bytes
On Fri, 06 Aug 2004 22:14:12 +0100, JRobert wrote:
Something like:
> class OPCODE_NODE
> {
> ushort op_mask;
> ushort op_code;
> OPCODETYPE opctype;
> CPUTYPE cpubits;
> ADDRMODE addrm;
OPCODE_NODE (ushort opmask, ushort op_code, OPCODETYPE opctype,
CPUTYPE cpubits, ADDRMODE addrm)
{ this.opmask = opmask;
... }
> };
> }
>
> private static OPCODE_NODE[] Group_0x0 = {
new OPCODE_MODE(0xffff, 0x003C, m_ORI, opct_CCR, ALL,
IMPLIED),
...
> Any suggestions ?
You should probably be using structs instead of classes here.
--
Marc Rohloff [TeamB]
marc rohloff at myrealbox dot com
Technical Details
Message-ID:
<1onofawj5e6bj$.dlg@marcrohloff.40tude.net>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4113e6ee$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1528ba,42c7b495a7aefb3d X-Google-Attributes: gid1528ba,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: Initializing a Array of Classes. Newsgroups: borland.public.csharpbuilder.compiler User-Agent: 40tude_Dialog/2.0.12.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <4113e6ee$1@newsgroups.borland.com> Date: Fri, 6 Aug 2004 17:24:59 -0400 Message-ID: <1onofawj5e6bj$.dlg@marcrohloff.40tude.net> NNTP-Posting-Host: 4.225.101.66 X-Trace: newsgroups.borland.com 1091827488 4.225.101.66 (6 Aug 2004 14:24:48 -0700) Lines: 29 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail