debug method inconsistently implemented
olaf-xpEK/[email protected] Mon, 20 Jan 2020 10:38:19 +0800
| Newsgroups | gmane.comp.audio.supercollider.devel |
|---|---|
| Message-ID | <[email protected]> |
While debugging code I usually use the debug method to print information I need during debugging. 2.debug(\interestingNumber) 2.class.debug(\theclass) When I wanted to know the class of a object I realized that some objects overload Object:debug which lead to a situation where no message is printed. In my case its the View class. View().class.debug(\theclass) Unfortunately unlike most other classes View:*debug does takes first a level argument and than the message. When I looked at the source code I saw that a few other classes either overload debug with a method or with a variable. Some of these overloaded functions make sense like RawArray:debug in other cases they break expected behaviour. I think this is a problematic situation and I would suggest the few spots where debug got overloaded (for a different ) are given a different name so that the debugging facilitated by Object is not disturbed by other implementations. Is this a valid issue to be put onto github? _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/