[Date Prev][Date Next][Subject Prev][Subject Next][Date Index][Subject Index]

Re: Question about "array" variables in XPL



Meant to add that XPL v4 added a syntax that's kinda, sorta like an array, in that you can parse out
separator-delimited substrings of a string by using numerical indices. The way it works is this: if
a there's a string in Save/Get 01 such as <SV01,red|blue|green|purple>, then
<VA@01|1>=="red", <VA@01|2>=="blue", and so forth. It works with
just about any separator character. The glaring limitation, however, is that it doesn't support
strings longer than 77 bytes. In fact, the XS parsing operator gives you a lot more flexibility in
this regard. Back in 1991, in a monograph called COUNTCHA.TXT <https://ammaze.net/xywwweb/dls/COUNTCHA.ZIP>,
I showed some examples that are least tangentially relevant to the array concept.

C.