[4242] in Athena Bugs

home help back first fref pref prev next nref lref last post

6.4R zwgc: `default' is read-only variable

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Thu Feb 15 17:37:17 1990

Date: Thu, 15 Feb 90 17:36:53 -0500
From: Ken Raeburn <Raeburn@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

Although zwgc isn't supposed to have read-only variables, it complains
of a syntax error if you try to assign to "default" in a set
statement.

Marc and I had a look at the lexer; "default" is a keyword (which is
out of place in the set statement context).

The solution *may* be to let some keywords be treated as variable
names, depending on context; this will require thought.

(Meanwhile, $default can still be side-effected by the functions that
modify arguments in addition to returning values.  Yuch bletch barf,
etc.)

home help back first fref pref prev next nref lref last post