[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45972] Anonymous function handles with vararg
From: |
Olaf Till |
Subject: |
[Octave-bug-tracker] [bug #45972] Anonymous function handles with varargin are not correctly saved. |
Date: |
Wed, 16 Sep 2015 13:47:36 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.2.1 |
Follow-up Comment #2, bug #45972 (project octave):
No, varargin is indeed no extra parse tree element, tree_parameter_list has an
entry indicating if varargs are taken.
I've seen now that visit_octave_user_function_header calls (indirectly)
visit_parameter_list and afterwards prints 'varargin', if necessary.
OTOH, visit_anon_fcn_handle only calls (indirectly) visit_parameter_list and
does not care for varargin.
As I see it now, visit_anon_fcn_handle shouldn't be changed (it can't be
called from
octave_fcn_handle::print_raw()
anyway, since octave_fcn_handle is contained _in_ tree_anon_fcn_handle), but
visit_octave_user_function should be changed so that it not cares itself for
varargin, but varargin should be cared for by visit_parameter_list.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45972>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/