fragcolor-xyz / shards-examples

Tutorials and examples with shards
https://learn.fragcolor.xyz
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Unable to compile full yes-no sample code due to calling wire with different input types #55

Closed Yttruire closed 1 year ago

Yttruire commented 1 year ago

Inconsistency in the code for calling the end-round wire as well as the result of true > .input-received being a Bool output causes the first When shard depicted to have an input type of Bool whereas the second When shard has an input type of None, resulting in an error "Attempted to call an already composed wire with a different input type"

Note: WireBase::verifyAlreadyComposed in wires.cpp in Shards will have to be smarter in identifying wires that can ignore inputs and ignore differences in input types when called again after composition. Separate issue to be raised there

image