From octave-maintainers-request at bevo dot che dot wisc dot edu Fri Jan 3 00:04:46 2003 Subject: Re: f(end) feature? From: "John W. Eaton" To: octave-maintainers at bevo dot che dot wisc dot edu Date: Fri, 3 Jan 2003 00:04:00 -0600 On 1-Jan-2003, John W. Eaton 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::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