|
From: | David Bateman |
Subject: | Re: How to use the OO features of Octave |
Date: | Tue, 23 Sep 2008 17:28:05 +0200 |
User-agent: | Thunderbird 2.0.0.16 (X11/20080725) |
John W. Eaton wrote:
Ok, I think I've found another bug. Attached is a toy galois field GF(2^M) class that duplicates some of the features of the equivalent octave-forge class. The subsref method has an issue in thatOn 23-Sep-2008, David Bateman wrote: | octave:14> ver | ---------------------------------------------------------------------- | GNU Octave Version 3.1.51+ | GNU Octave License: GNU General Public License| Operating System: Linux 2.6.22.19-laptop-2mdv #1 SMP Mon May 5 21:45:32 | EDT 2008 x86_64| ----------------------------------------------------------------------| | So I'm use the tip as of yesterday. Maybe there is an issue of synchro | between our repositories.. What was the change that addressed this?I don't know precisely which change it was, but it would have been related to the octave_call_stack mechanism in toplev.cc, and the way it is used in functions like Fclass. jwe
a = gf(0:3, 2); a(2:end)returns nothing. The issue is that in the subsref method the s.subs field is empty when it should contain (2:4). Doing
a(2:4) however works correctly. Regards David -- David Bateman address@hiddenMotorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary
galois.tar.bz2
Description: BZip2 compressed data
[Prev in Thread] | Current Thread | [Next in Thread] |