Hi,
In message "Re: singleton : var_ref production and NEW_SELF"
on Sat, 14 Oct 2006 12:07:28 +0900, Thomas Enebo <Thomas.Enebo / Sun.COM> writes:
|Looking at the grammar I am confused why in production 'singleton' there is:
|
|if (nd_type($1) == NODE_SELF) {
| $$ = NEW_SELF();
|}
|
|It already is a self node so what does creating another one do?
Indeed. This is useless. I don't remember why I made it like this.
Interestingly this code already existed in the oldest archive I have
(version 0.49 dated 1994-07-18). So this bogus code is at least 12
years old.
matz.