User talk:Marinus/Gibberish interpreter

From Esolang
Jump to navigation Jump to search

Bugfix for binary operators in command set #3

There is a bug in the implementation of set #3 which leads to an error that global 'binop' is not defined. The original lines in the code are:

 def cBinAnd(self): self.binstackf(binop(and_), NUMT, NUMT)()
 def cBinOr(self): self.binstackf(binop(or_), NUMT, NUMT)()

This should be changed to

 def cBinAnd(self): self.binstackf(self.binop(and_), NUMT, NUMT)()
 def cBinOr(self): self.binstackf(self.binop(or_), NUMT, NUMT)()

Otherwise, you cannot use the logical AND and OR operators of command set #3...

--(this comment by at 21:39, 2 July 2013‎ UTC; please sign your comments with ~~~~)

Fixed that. Huh, someone is actually using this. --Marinus (talk) 08:43, 6 July 2013 (UTC)