[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: f(end) feature?
From: |
John W. Eaton |
Subject: |
Re: f(end) feature? |
Date: |
Fri, 3 Jan 2003 00:04:00 -0600 |
On 1-Jan-2003, John W. Eaton <address@hidden> wrote:
| OK, it was not hard. Here is the patch.
Oops. It is not that easy. My code did this:
void
tree_argument_list::append (const element_type& s)
{
octave_base_list<tree_expression *>::append (s);
if (s && s->is_identifier () && s->name () == "__end__")
list_includes_magic_end = true;
}
but (obviously, now) it needs to check the possibility that any
expression type might also contain a magic end token. Should not be
too hard, but will require some new code in all the expression types.
Will try to do tomorrow, and make a new snapshot within a day or two.
In the meantime, if you want "end" to work, you can comment out the if
statement in this function (but leave the assignment of true to
list_includes_magic_end)
jwe