Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 4848 days ago | link | parent

That sounds a lot like Tcl. Or even shell:

  $ A="345"
  $ echo $(($A+1))
  346


2 points by jsgrahamus 4848 days ago | link

  Mumps Interpreter V11.0 Fri Jun 08 11:19:45 2012

  > s a="345"
  > w a+1,!
  346
  > s a=" 123" ; With a space at the front, it does not qualify
  > w a+1,!    ; as a number and defaults to 0
  124
  >

-----

1 point by akkartik 4848 days ago | link

Wait, if the second a defaults to 0, shouldn't the final result be 1?

-----

2 points by jsgrahamus 4848 days ago | link

Should have looked before I typed.

Actually it should have been 1. That version of MUMPS acts different than the other 2 systems I have on my PC.

-----