1. Py 2.5e Update
I've just posted the latest version of Py (2.5e) to my home page, at:
http://www.lanset.com/dcuny/py.htm
Features include:
- calls using indexed variables fixed
- dictionaries now use Jiri's hybrid lists
- del with dot notation fixed
- var ... syntax added
- fixed bug in Ox, mishandling $pre directive
If you are curious about what Py can do, here's an example native support
for the 'dictionary' data structure (also called an "associated list"):
s = {"name":"chester", _
"color":"orange", _
"proc":routine_id("length") }
The underscores are only needed if you are entering information from
interactive mode. This is the same as writing:
s = {}
s["name"] = "chester"
s["color"] = "orange"
s["proc"] = routine_id("length")
Which is exactly the same as:
s = {}
s.name = "chester"
s.color = "orange"
s.proc = routine_id("length")
Py allows calling variables as if they were routine names, expecting the
variable to contain a routine id value. For example, the two statements:
? s.proc("abcd")
? length("abcd")
are functionally the same. This allows Py to act like it's object oriented,
without having to introduce the notion of classes - an idea stolen from
JavaScript.
As usual, feedback is appreciated!
-- David Cuny