[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking Octave to Cantera - concatenation error
From: |
Judd Storrs |
Subject: |
Re: Linking Octave to Cantera - concatenation error |
Date: |
Sat, 5 Dec 2009 19:39:24 -0500 |
On Sat, Dec 5, 2009 at 5:12 PM, John W. Eaton <address@hidden> wrote:
> | octave:3> { a b }
> | ans =
> | {
> | }
>
> Here, the result is a cell array containing both class objects.
> Nothing is printed for each element because there is no display method
> for the class FOO. Maybe Octave should print some default message in
> that case, but it currently does not. That part at least should be
> relatively easy to fix.
Ok, I think I've made a patch to fix the display of classes that don't
have display(). I'm not sure I got the hg changeset generation stuff
correctly. To create the patch I did a
hg export 9924:9925 > cell-class.patch
With the patch applied:
lt-octave:1> a = foo()
a = <class foo>
lt-octave:2> b = foo()
b = <class foo>
lt-octave:3> {a b}
ans =
{
[1,1] = <class foo>
[1,2] = <class foo>
}
lt-octave:4>
--judd
cell-class.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Linking Octave to Cantera - concatenation error,
Judd Storrs <=