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

tabwrite should act sensibly upon out of bound address #1281

Closed
WilliamAHuston opened this issue Mar 5, 2021 · 3 comments · Fixed by #1259
Closed

tabwrite should act sensibly upon out of bound address #1281

WilliamAHuston opened this issue Mar 5, 2021 · 3 comments · Fixed by #1259

Comments

@WilliamAHuston
Copy link

[tabwrite] produces unexpected behavior upon out of bounds addresses.

In this example 3 element array,
the first element of the array responds to any address <= 0 (only 0 is expected)
the second element responds to address=1 (expected)
the third element responds to addresses >= 2 (only 2 is expected(

Thanks!
BH

image

@porres
Copy link
Contributor

porres commented Mar 5, 2021

Do you mean it should ignore out of bound addresses?

As I see, this is intentional and works like feeding your input into a [clip 0 2], so it is some safeguard. Not saying this is good or bad, just what it is and that maybe, being a design choice, it won't change. Nonetheless, if so, a clear or better statement on this behaviour should be given in the help file.

@Spacechild1
Copy link
Contributor

Yep, this is by design and can't/won't change.

Nonetheless, if so, a clear or better statement on this behaviour should be given in the help file.

+1

porres added a commit to porres/pure-data that referenced this issue Mar 5, 2021
Update tabwrite-help to inform about index clipping and other minor improvements
@WilliamAHuston
Copy link
Author

Agreed that this should be documented. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants