[PD] dollar argument

Thomas Ouellet Fredericks tof at danslchamp.org
Mon Apr 30 15:48:38 CEST 2007


There is also the overlooked very powerful [dollarg] from iemlib that
converts all your arguments into a list. I even made an abstraction
that can parse arguments by name like in Jitter. For example, [dollars
@currency canadian @exchange_rate 1.87 @output km] could also be
written [dollars @output km @exchange_rate 1.87 @currency canadian]

Anyway, dollarg rocks.

Tom

On 4/30/07, Frank Barknecht <fbar at footils.org> wrote:
> Hallo,
> ronny vanden bempt hat gesagt: // ronny vanden bempt wrote:
>
> > First a small question, that maybe you know: how can I reply to a message on
> > the mailinglist, when I only receive digests?
>
> I don't know, this depends on your mailing software. You can always
> trim you quotes manually and CC the mail to pd-list at iem.at
>
> > But then for the dollarsign: I put the object [symbol $1] between the bang
> > and message box I use, but I still get an error. Now the error says:
> > -window: no such object.
>
> Yeah, that's a problem when you don't supply any argument to the
> abstraction. Empty arguments are assumed to be 0 and thus you need to
> use [f $1] instead of [symbol $1]. Or use [symbol $1-window] with
> different message box contents or use the catch-all-types approach:
> [list append $1]
>
> Another possibility is to use a send-object instead of
> semicolon-messages. Sender objects are nicer anyways IMO.
>
> See attached patch for all this in action.
>
> Ciao
> --
>  Frank Barknecht                 _ ______footils.org_ __goto10.org__
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>
>




More information about the Pd-list mailing list