Required inputs lead to trouble
Created by: reiniervandijk
On 1581, consider:
(define-object my-required (base-object)
:input-slots
(width)
:objects
((box :type 'box
:width (the width)
:length 1 :height 1)))
Visualize object in Tasty, don't draw anything. Set the width input to a certain number. Then try to draw. Unexpectedly, the box instance complains:
!! This section threw error: Neither #<my-required @ #x24f21baa> nor any of its ancestor instances could handle the :width message The path to the containing object is: (the :root :root-object-object) !!
Breaking on the object and forcing
(the (set-slot! :width 1))
Solves the problem. Alternatively, visualizing the instance:
(make-self 'my-required :width 1)
is fine. However, I believe that the first use case poses serious issues that should not occur.