[Top][All Lists]

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

Re: disp architecture

From: John W. Eaton
Subject: Re: disp architecture
Date: Fri, 25 Oct 2019 13:37:11 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 10/25/19 1:08 PM, Rik wrote:

For point c), Matlab seems to get around this by not calling disp() at all
on elements of an aggregating data structure like a struct or cell array.
Instead, it merely prints the name tag for the object (class and size).

Isn't the display method involved as well? I thought that was the method that was called to display an object, and that it might use disp internally? And that Matlab's display method accepts a second argument to force the name tag that is used (Octave copies this feature since it appears to be required for basic compatibility even though it is not documented).

Anyway, I agree that compatibility is important for display and disp because they are used by classdef classes to display objects. So if we aren't compatible, display of those objects won't work as expected.

I'm also just trying to understand what is required and how it is supposed to work.


reply via email to

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