strings-for-display as input-slot
Created by: reiniervandijk
Consider:
(define-object A ()
:input-slots
((strings-for-display "hoi")))
If you open this in Tasty, apparently strings-for-display is set by Gendl and doesn't respect user-defined default. Changing strings-for-display to a computed-slot, solves the problem, but not the intrinsic issue.
Imported comments:
By genworks on 2013-10-26 03:08:05 UTC
This was originally by design --- in tasty, the toplevel part gets input its strings-for-display from tasty, and this is the object type. The intent was so that you could tell what type of object you are looking at (and it is not a named instance because it has no parent to name it).
But if it does have an input-slot defined for strings-for-display, I suppose this shouldn't be overridden by tasty.
Fix will be in a 1585 maintenance update.
Implemented by removing :strings-for-display input to root-object-object in tasty:assembly.
By genworks on 2013-10-28 02:21:18 UTC
This has been reverted. If you want to specify the strings-for-display, make it a computed-slot of your root object. Otherwise it gets passed in by tasty as the object type. If this is not input from tasty, and the toplevel part does not specify its own strings-for-display, the name comes out as "root-object-object" which is not desirable.
Original behavior has been restored and will be left this way pending further discussion, if needed.