Hallo, David Powers hat gesagt: // David Powers wrote:
Maybe somebody will find the attached (simple) abstraction useful. I often have to trigger a single gemhead on, and everything else off. This is the best way that I have found to do it is far... If somebody thinks there is a better way, I'd be curious to hear of it.
It's not as known as it should be, but one can write a float to a table without [tabwrite] as well: Just send a message with the starting index and the values to write at that and after it to a sender, that is named the same as the table.
So you could replace the [tabset] with [s $0-array] if you add a zero to the incoming list of zeros. Actually sending [const 0( to [s $0-array] is even better in that case.
Attached is an alternative approach to the task of switching on gemheads exclusively. I named it [exclusive], it's very simple and can be made to work for any number of gemheads. It involves a bit more patching and typing than your solution, though.
Frank Barknecht _ ______footils.org_ __goto10.org__