Re: Re: Labeled NOP

<[email protected]>
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <20020713121414.LKHN27460.mailoutvl21@[192.168.139.30]>
> What does everyone else think?
>   1 - Comment NOP
>   2 - Comment Pseudo Operation
>   3 - Comment Any Instruction
>   4 - Comment a Cluster of Instructions

Having some code in the NOP class that allows for extra
information, should do not much harm. NOP however is
a fly-weight instruction and may be reused.

You can safely add comments or other data to an instruction
handle instead, with the addAttribute method.
A propos attributes, one could even introduce a new
Attribute to the code, which would be simply ignored by
the JVM.

Cheers
  Markus

--
Berlin.de - Politik + Verwaltung | Bürgerservice | Die Hauptstadt | Tourismus + Kultur | Wirtschaftsstandort | Tickets | Branchenbuch | eMail http://www.Berlin.de

++++++++++++++++++++++++++++++++++++++++++++++++
7 CITIES SUMMER AUCTION

Reisen Sie mit uns durch das Land der grenzenlosen Merkwürdigkeiten. Sieben Städte, zwölf Mitbringsel und noch mehr Erlebnisse. Jeden Montag und Donnerstag eine neue Episode und eine neue Auktion: http://www.BerlinOnline.de/auktion

Präsentiert von BerlinOnline und Lucky Strike Originals
++++++++++++++++++++++++++++++++++++++++++++++++
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.