Open VOSID8 opened 4 months ago
The source of the error you are seeing comes from the type parameter C
you added to the Clip
reified instruction (and you also added a type parameter to render
). This approach won't work with Reified
: it is intended to be a simple list of instructions (a "linear IR") without any nesting. The way you have represented Clip
has nesting, which introduces the type parameter that is causing you problems. You need to get rid of the nesting, and then things will work.
I've added some additional documentation to Reified
that explains how the instructions should be represented (a linear IR) and describes how you can solve the problem you'll encounter when you try to implement clipping in this representation.
I'm working keeping in mind the other Java2D algebras as reference utilizing reified data structure and package. I'm facing bit of a trouble with expressing relationships between types with ReifiedClip and Reified.