|
From: | Ll |
Subject: | [Octave-bug-tracker] [bug #49409] Undefined var from subclass |
Date: | Fri, 21 Oct 2016 21:41:02 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?49409> Summary: Undefined var from subclass Project: GNU Octave Submitted by: pipeng Submitted on: Fri 21 Oct 2016 09:41:00 PM GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: GNU/Linux _______________________________________________________ Details: Hi, well this is a Matlab example: address@hidden ~/Documentos/Cosas/octave/classes $ cat @A/A.m classdef A properties x y end methods function obj = A(x) obj.x = x; end end end address@hidden ~/Documentos/Cosas/octave/classes $ cat @B/B.m classdef B < A methods function obj = B(x,y) address@hidden(x); obj.y = y; end end end and from octave octave:3> B(2) error: 'y' undefined near line 5 column 18 error: called from B at line 5 column 16 Thx. Cya. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?49409> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |