{"action":"created","issue":{"url":"https://api.github.com/repos/csound/csound/issues/1095","repository_url":"https://api.github.com/repos/csound/csound","labels_url":"https://api.github.com/repos/csound/csound/issues/1095/labels{/name}","comments_url":"https://api.github.com/repos/csound/csound/issues/1095/comments","events_url":"https://api.github.com/repos/csound/csound/issues/1095/events","html_url":"https://github.com/csound/csound/issues/1095","id":395726843,"node_id":"MDU6SXNzdWUzOTU3MjY4NDM=","number":1095,"title":"printarray does not work with %d or %i format string","user":{"login":"joachimheintz","id":2196394,"node_id":"MDQ6VXNlcjIxOTYzOTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2196394?v=4","gravatar_id":"","url":"https://api.github.com/users/joachimheintz","html_url":"https://github.com/joachimheintz","followers_url":"https://api.github.com/users/joachimheintz/followers","following_url":"https://api.github.com/users/joachimheintz/following{/other_user}","gists_url":"https://api.github.com/users/joachimheintz/gists{/gist_id}","starred_url":"https://api.github.com/users/joachimheintz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joachimheintz/subscriptions","organizations_url":"https://api.github.com/users/joachimheintz/orgs","repos_url":"https://api.github.com/users/joachimheintz/repos","events_url":"https://api.github.com/users/joachimheintz/events{/privacy}","received_events_url":"https://api.github.com/users/joachimheintz/received_events","type":"User","site_admin":false},"labels":[{"id":87871795,"node_id":"MDU6TGFiZWw4Nzg3MTc5NQ==","url":"https://api.github.com/repos/csound/csound/labels/bug","name":"bug","color":"fc2929","default":true},{"id":87871797,"node_id":"MDU6TGFiZWw4Nzg3MTc5Nw==","url":"https://api.github.com/repos/csound/csound/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-01-03T21:15:14Z","updated_at":"2019-01-05T17:34:30Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"it it very nice to have the printarray opcode now, and i like the design.\r\ni have one bug report and two suggestions:\r\n1. the %d or %i format string always leads to zero as output:\r\ngiArr1[] fillarray 1, 2, 3, 4, 5\r\nprintarray giArr1, \"%d\"\r\n->   0: 0 0 0 0 0 \r\n2. i don't like that there is always one extra newline in printout. can this be left as option to the user? for instance, this would give an extra newline:\r\nprintarray giArr1, \"\", \"\\n\"\r\n3. also i don't like the element count to have always.  it is very useful for long arrays, but should be optional, in my opinion.\r\n"},"comment":{"url":"https://api.github.com/repos/csound/csound/issues/comments/451674532","html_url":"https://github.com/csound/csound/issues/1095#issuecomment-451674532","issue_url":"https://api.github.com/repos/csound/csound/issues/1095","id":451674532,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTY3NDUzMg==","user":{"login":"gesellkammer","id":81332,"node_id":"MDQ6VXNlcjgxMzMy","avatar_url":"https://avatars3.githubusercontent.com/u/81332?v=4","gravatar_id":"","url":"https://api.github.com/users/gesellkammer","html_url":"https://github.com/gesellkammer","followers_url":"https://api.github.com/users/gesellkammer/followers","following_url":"https://api.github.com/users/gesellkammer/following{/other_user}","gists_url":"https://api.github.com/users/gesellkammer/gists{/gist_id}","starred_url":"https://api.github.com/users/gesellkammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gesellkammer/subscriptions","organizations_url":"https://api.github.com/users/gesellkammer/orgs","repos_url":"https://api.github.com/users/gesellkammer/repos","events_url":"https://api.github.com/users/gesellkammer/events{/privacy}","received_events_url":"https://api.github.com/users/gesellkammer/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T17:34:30Z","updated_at":"2019-01-05T17:34:30Z","author_association":"CONTRIBUTOR","body":"Should I take a look at what printf (the opcode) does and try to use \nthat?\n\nOn Sa, Jan 5, 2019 at 6:19 PM, John ffitch <notifications@github.com> \nwrote:\n> The bug is still there. Ideally it should interpret %d as in printf \n> style or throw an error on trying. At the very least it should be \n> noted in the manual.\n> \n> There are two (I think) implementations of formatted printing in \n> csound which interpret %d and others as expected. Could it be \n> possible to hook into that code?\n> \n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n\n"}}
{"actor":{"display_login":"gesellkammer"}}