Darren New wrote:
Andrew Lentvorski wrote:
So my question: What other languages *can* pull this off?

Ada. Forth. Tcl. (Each in its own way, of course.)

The veracity of your post is lessened greatly by the lack of code.

This is especially true since I'm having trouble thinking of a way to make *anything* read-only in Forth at a syntax level.

And I can't really think of a way to override "set" properly in Tcl either in normal use or with an object system like [incr Tcl]. Hopefully Lan will weigh in here.

And, Ada, IIRC, has a const-like declaration, but lacks the ability to do dynamic assignment without declarations like Python.

It's seems easy to do one or the other of const static declarations or dynamically assignable typing. It doesn't seem like many languages do both.

-a

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to