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

Re: [Tads3] Listing Contents of Surfaces



"Eric Eve" <eric.eve@harris-manchester.oxford.ac.uk> wrote:
Something seems not quite right with the listing of objects on a surface:
You see a small table (which contains a banana) here.

Whereas I'd expect to get (and so far as I can see from the definition of
the Surface class it's intended that I'd get) something like

You see a small table (on which is a banana) here.
It looks like the culprit is the inlineContentsLister property of Surface, or more precisely the lack thereof. Surface is just inheriting the standard inlineContentsLister from Thing, but it really should be using a custom lister for that. I think this can be remedied by adding a new custom lister to msg_neu.t along these lines:

surfaceInlineContentsLister: inlineListingContentsLister
showListPrefixWide(cnt, pov, parent)
{ " (on which <<cnt == 1 ? 'is' : 'are'>> "; }
;

...and then adding to Surface:

inlineContentsLister = surfaceInlineContentsLister

I'll add this to the library - thanks for catching it.

--Mike

_________________________________________________________________
Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com