[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Row and column of anonymous function
From: |
John W. Eaton |
Subject: |
Row and column of anonymous function |
Date: |
Mon, 27 Jun 2011 16:35:13 -0400 |
On 27-Jun-2011, Daniel Kraft wrote:
| And now more interesting: How do I
| get the line and column where the inline function was defined? I looked
| up through the class hierarchy, but did not find any source location
| information in octave_user_function, octave_function, octave_base_value,
| octave_value -- probably I missed it; or is it somewhere else? How do I
| get this information, so I can fill in the "42:42" above with the real
| values?
Line and column info for tokens is only stored in the parse tree. I
would not want to store that information in the octave_value class for
every value object. If it is only needed for functions, then I guess
we could store the info there when creating the function object.
jwe