Increment

10 views
Skip to first unread message

Artem Avetisyan

unread,
Mar 24, 2013, 4:12:55 PM3/24/13
to pogos...@googlegroups.com
++n works but n+=2 does not. Inconsistency?

% pogo
> n=1
1
> ++n
2
> n+=2
ReferenceError: $2b$3d is not defined
    at repl:1:21
    at REPLServer.exports.repl.evalPogo [as eval] (/usr/local/lib/node_modules/pogo/lib/parser/commandLine.js:132:40)
    at Interface.<anonymous> (repl.js:250:12)
    at Interface.EventEmitter.emit (events.js:88:17)
    at Interface._onLine (readline.js:199:10)
    at Interface._line (readline.js:517:8)
    at Interface._ttyWrite (readline.js:735:14)
    at ReadStream.onkeypress (readline.js:98:10)
    at ReadStream.EventEmitter.emit (events.js:115:20)
    at emitKey (readline.js:1057:12)
>

Thanks,
Artem 

Tim Macfarlane

unread,
Mar 24, 2013, 4:36:24 PM3/24/13
to Artem Avetisyan, pogos...@googlegroups.com
Indeed an inconsistency, they just need implementing. On my list now that you noticed!
--
You received this message because you are subscribed to the Google Groups "pogoscript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pogoscript+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages