[1565] in Coldmud discussion meeting

root meeting help first previous next last

Bug in .method_bytecode()

daemon@ATHENA.MIT.EDU (Sat Apr 8 02:57:41 2000 )

Date: Sat, 08 Apr 2000 02:44:08 -0400
From: Michael Mudge <mmudge1@twcny.rr.com>
To: coldstuff@cold.org
Reply-To: coldstuff@cold.org

I went poking around method_bytecode today and was trying to figure out how if()
statements are stored...  It seems that I found a bug, instead.  It seems that
method_bytecode does not indicate the end of an if() block:

@program .test1
if(1) {
  return 2;
  return 3;
}
return 4;
.
@program .test2
if(1)
  return 2;
return 3;
return 4;
.

;.method_bytecode('test1) == .method_bytecode('test2)
=> 1

- Kipp
PS.  Not subscribed -- please reply to me too.