octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33062] resize and reshape used with objects r


From: Rik
Subject: [Octave-bug-tracker] [bug #33062] resize and reshape used with objects return structures
Date: Thu, 14 Apr 2011 23:39:23 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16

Follow-up Comment #2, bug #33062 (project octave):

While testing your patch I ran into some issues.  See below:


octave:1> a = resize (ftp('ftp.octave.org'), 1, 0); 
octave:2> whos a
Variables in the current scope:

  Attr Name        Size                     Bytes  Class
  ==== ====        ====                     =====  ===== 
       a           1x0                          0  struct

Total is 0 elements using 0 bytes

octave:3> b = ftp('ftp.octave.org')
octave:4> whos b
Variables in the current scope:

  Attr Name        Size                     Bytes  Class
  ==== ====        ====                     =====  ===== 
       b           1x1                         38  ftp

Total is 1 element using 38 bytes


Is 'a' really supposed to occupy 0 bytes?

Also, the instance 'a' does not work whereas instance 'b' does.

dir (a)
error: __ftp_dir__: incorrect number of arguments
error: called from:
error:   /home/rik/wip/Projects_Mine/octave-doc/scripts/@ftp/dir.m at line 27,
column 5

dir (b)
d--x--x--x    2 0        0            4096 Sep 23  2007 bin
d--x--x--x    2 0        0            4096 Dec 09  2005 dev
d--x--x--x    2 0        0            4096 Dec 09  2005 etc
d--x--x--x    2 0        0            4096 Sep 23  2007 lib
drwxr-xr-x    9 0        0            4096 Nov 20  2008 pub


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33062>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]