[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
override display() for class
From: |
Steve White |
Subject: |
override display() for class |
Date: |
Thu, 9 Dec 2010 23:37:43 +0100 |
Hi!
I have overridden the display() function for a class,
but the results aren't what I expect. I don't know how to
make it print out the variable name.
For example, if one types
a = 1
Octave prints out the whole expression
a = 1
I want to get this effect when, say assigning a variable to my class.
However, if in a class I override the display() function to just call
printf() on the class members, it does not print out the variable name,
just the output of printf.
Cheers!
- override display() for class,
Steve White <=
- Re: override display() for class, CdeMills, 2010/12/10
- RE: override display() for class, Steve White, 2010/12/10
- RE: override display() for class, CdeMills, 2010/12/10
- RE: override display() for class, Steve White, 2010/12/11
- Re: override display() for class, Jaroslav Hajek, 2010/12/12
- RE: override display() for class, Steve White, 2010/12/12
- Re: override display() for class, CdeMills, 2010/12/13
- Re: override display() for class, Ben Abbott, 2010/12/13
- Re: override display() for class, John W. Eaton, 2010/12/13
- Re: override display() for class, bpabbott, 2010/12/13