Fun fact, this is also the reason why 'i' is commonly used as a name for the loop counter variable.
Strangest Programming Language Feature?
11–20 of 66 posts
Re: Strangest Programming Language Feature?
#12Re: Strangest Programming Language Feature?
#13No mention of "ALTER" ( http://en.wikipedia.org/wiki/COBOL#Self-modifying_code ) on the first page? Self-modifying code was fairly common at the time COBOL was developed, but incorporating it in a high-level business language was, IMO, a very weird decision. I also miss call by name ( http://en.wikipedia.org/wiki/Man_or_boy_test ) on the first page. In general, one should read the Intercal ( http://en.wikipedia.org/w…
Re: Strangest Programming Language Feature?
#14Re: Strangest Programming Language Feature?
#15Re: Strangest Programming Language Feature?
#16Re: Strangest Programming Language Feature?
#17The COBOL MOVE-CORRESPONDING verb. I'm not going to try to explain exactly how it works here, but imagine, if you will, copying the contents of one table to another table with a different column structure, but sort of the same names.
Re: Strangest Programming Language Feature?
#18Re: Strangest Programming Language Feature?
#19: 2 3 ; ... redefines the constant 2 as 3. FORTH. Go figure :-)
That is, unless you import a module within redeclariations, in what case the module will inherit the values of the last declarations above the line it's imported on (not the last one of the file). And yep, that'll replace any declarations within that module.
The biggest surprise is that this is useful.
Re: Strangest Programming Language Feature?
#20/me drops the MUMPS reference manual on the table That whole language is one long-running WTF.
This line in MUMPS is not only valid, it also actually does something potentially useful: s:foo'="" foo(foo)=foo It's actually a bit tricky to explain what it does. Everything in MUMPS is effectively a tree. Each tree has a value in the "root node" and you can set it like this: set foo="hello" You can also put data deeper into the tree: set foo("fizz")="buzz" So if something is passed to you and you want to know if y…
An emergency MUMPS project is still my highest billing project (per hour) ever.