[PD-dev] treating $1 as an argument in A_GIMME

Alexandre Torres Porres porres at gmail.com
Fri Sep 17 18:06:59 CEST 2021


Em sex., 17 de set. de 2021 às 13:00, Christof Ressi <info at christofressi.com>
escreveu:

> I guess what happens is that you instantiate [cyclone/play~] on a top
> level canvas (which doesn't have creation arguments), so the value of
> "$1" is always "0". A_DEFSYM converts non-symbols to an empty symbol.
>

Yes, that's the problem. I should have said it all works fine if this is an
abstraction loaded with actual arguments. But I still wonder if there's
anything I can do. I do need to use A_GIMME ayway, changing that is not an
option.


> Otherwise use A_GIMME and check manually.
>

 This is what I'm doing, but if I check if it's a float (illegal), then $1
is a float... so, well, just to be clear, there's no way around this, right?

cheers

>
> Christof
>
>
>
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20210917/e0b1d85e/attachment.htm>


More information about the Pd-dev mailing list