[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
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.