[PD] Attempting to send a string containing spaces through pack.

B. Bogart ben at ekran.org
Tue Apr 25 16:20:37 CEST 2006


Hi Luke,

There is no such thing as a "string" in PD, symbols, floats and lists
(and signals.). Johannes assumes you mean a symbol with a space, I'll
assume you mean a list. ([list symbol symbol symbol<)

To join two lists you use "glue" from zexy and use it as you've used
your "pack"  (but without creation arguments)

.b.

IOhannes m zmoelnig wrote:
> Luke Yelavich wrote:
> 
>>Hi all.
>>I am attempting to use pack to join a couple of strings together, but 
>>haven't been able to work out how to send one string of data with spaces 
>>in it through as one symbol.
>>
>>string1  Spaced String
>>|        |
>>|        |
>>----------
>>|pack s s|
>>----------
> 
> 
> this makes a list of 2 symbols. which is NOT a symbol with a space.
> (even though it might look like such when [print]ing it)
> 
> probably you'll find something in the archives:
> http://lists.puredata.info/search/PD-list?query=create+symbol+with+spaces
> 
> mfg.asdr.
> IOhannes
> 
> 
> 
>>|
>>|
>>-------
>>|print|
>>-------
>>
>>Thanks in advance.
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>PD-list at iem.at mailing list
>>UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
> 
> 
> 
> _______________________________________________
> 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