[Dev] 'get' revisited
Jamie Bullock
jb at integralive.org
Fri Mar 30 09:09:37 BST 2007
Hi,
I think this is probably a rather minor issue, but I thought I would
raise it anyhow because it's bugging me!
Why do we need any kind of 'get' syntax appended to an OSC address to
get the value that is assigned to a variable? This syntax (or absence of
syntax) seems much cleaner to me:
/x 20 (sends the integer 20 to the address /x)
/x (returns the value previously sent to the address /x, in Integra
terms '/x: 20')
I have attached an example using the canonical integra.linfunc module to
illustrate this. It uses a simple helper abstraction [getsetf] to do the
work.
BTW: [integra.linfunc2] also fixes the typos in the .get implementation,
and replaces the expensive call to sprintf.
Jamie
More information about the Dev
mailing list