One way of making sure you have a certain value is to use assert.

2010/1/22 Ian Clark <[email protected]>:
> Another thing I'd really like in J (and rookies shouldn't be allowed
> to ask such things) is something like the C++ "const". A way of
> locking down the name of a quantity so that it can't be changed during
> "the run", whatever that is -- at least not without raising an error.
> Or (like []WATCHPOINTS in APL+Win) firing an event -- but that has
> other smart possibilities.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to