[Factor-talk] Fwd: Macros and unpacking bitstreams

2014-12-14 Thread Mark Green
Thanks very much for your help. I'm now getting into unpacking data structures from the bitstreams, but this is getting me some horrible code, to whit stuff like this: TUPLE: scData creator type ver num name reverb-character reverb-prelpf reverb-time reverb-delay reverb-predelay reverb-level

Re: [Factor-talk] Fwd: Macros and unpacking bitstreams

2014-12-14 Thread John Benediktsson
A different approach that is more self-documenting might be to use accessors instead of a boa-constructor (perhaps just a tad less efficient, although likely not that you'd ever notice): scData new test SC get-chunk first { [ 4 7 bsread-string creator ] [ 4 7 bsread-string