supercollider-quarks / Influx

Lose Control, Gain Influence.
9 stars 5 forks source link

Replace `.getSpec` with `.specs` to obtain specs of an object #7

Open capital-G opened 10 months ago

capital-G commented 10 months ago

The code currently uses .getSpec which will always return nil if called without params (correct me if I am wrong). Instead it would be better to use .specs which returns the explicitly stated/attached specs for a proxy.

As .specs is not attached to Object (.getSpec is) I wrapped the code which checks if the object responds to .specs in order to avoid breakage.

Also see https://github.com/supercollider-quarks/Influx/pull/5#issuecomment-1879887967