Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnaryOpPattern et al. cause loop in PatternProxy (Pdefn) for single values. #2412

Closed
telephon opened this issue Oct 17, 2016 · 0 comments
Closed
Labels
comp: class library SC class library fix proposed stale - assign yourself to reopen This was closed due to lack of reinterest, assign yourself if you wish to reopen

Comments

@telephon
Copy link
Member

This is related to #2411, but can be fixed independently, for now.

When used with an operator, PatternProxy doesn't embed in Pattern correctly. It loops single values, while it shouldn't.

// a doesn't loop (is correct)
a = PatternProxy(7);
b = Pseq([1, 2, 3, a, 5], inf);
b.asStream.nextN(8);

// a loops (wrong)
a = PatternProxy(7).neg; // call an operator, result is a UnaryOpStream
b = Pseq([1, 2, 3, a, 5], inf);
b.asStream.nextN(8);
telephon added a commit to telephon/supercollider that referenced this issue Oct 17, 2016
@nhthn nhthn added the comp: class library SC class library label Oct 18, 2016
@muellmusik muellmusik added the stale - assign yourself to reopen This was closed due to lack of reinterest, assign yourself if you wish to reopen label Aug 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: class library SC class library fix proposed stale - assign yourself to reopen This was closed due to lack of reinterest, assign yourself if you wish to reopen
Projects
None yet
Development

No branches or pull requests

3 participants