[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] Is this a bug? Functions and "var" style



Hi -

This returns nil:

{
var son = PinkNoise.ar;
var filt = LPF.ar(son);
}.value

Presumably because the "var" lines are treated as declarations and not
as actual lines of code, in the sense that Function:value treats the
Function as having no last line of code. Is this a bug? It would seem
to be a natural way of writing things if using the
"var"-for-every-line style.

This version does return a non-Nil value:

{
var son = PinkNoise.ar;
var filt = LPF.ar(son);
filt
}.value


Dan
-- 
http://www.mcld.co.uk

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/