|
From: | Michael Goffioul |
Subject: | Re: Use of symbol_table::varref in ov-classdef.cc |
Date: | Wed, 22 Jan 2014 08:47:04 -0500 |
On 01/11/2014 11:23 PM, Michael Goffioul wrote:Can you show me some code and explain what it needs to do?
Hi John,
While compiling from default branch, I see a deprecate warning in
ov-classdef.cc, due to the use of symbol_table::varref. This is
occurring in constructors, when calling a superclass constructor explicitly.
I'm not sure what advice to give. I think the reason I deprecated it was because it was possible for varref to give up a pointer to an octave_value object and there could be no guarantee that later the pointer would still be valid. I see that a direct pointer to an octave_value object was replaced with a symbol_table::symbol_reference object in octave_lvalue, which is a place that we still need to hold on to a reference to a variable instead of just doing an assignment directly. Will something like that work?The comments in symtab.h say to use "assign" instead, but I don't see a
direct mapping between the two.
Could you advise what would be the right way to handle the case?
[Prev in Thread] | Current Thread | [Next in Thread] |