There ought to be a way to do this - some other object than [text define] should be able to do 'read' and 'write' operations. Perhaps this needs to be added to the [pointer] object somehow. (For a long time I've wished for a better suite of objects to traverse data structures but can't find a good design :)
Miller On Sun, Mar 26, 2017 at 01:18:19PM -0700, Derek Kwan wrote: > Miller Puckette <[email protected]> writes: > > > Not sure if this really works yet but... > > > > You should be able to use [text tolist] and [text fromlist] to copy the > > entire contents of a text inside a scalar (struct) into a [text define] - > > and from there to/from a file. > > > > cheers > > Miller > > Hello, > > Correct, this works. I was just hoping for the ability to use these methods > "directly" on a text struct member without these extra steps or > overhead, but perhaps the text being a member of a struct makes things > a little bit more complicated... I could see an abstraction using a > "proxy" [text] instance and automating the [text fromlist/tolist] steps > helping out the situation though. Thanks! > > Derek > -- > Derek Kwan > www.derekxkwan.com _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
