syntax options for reading array properties
Richard Gaskin
ambassador at fourthworld.com
Sun Sep 27 14:05:52 EDT 2009
Mark Wieder wrote:
> Richard-
>
> Sunday, September 27, 2009, 10:11:18 AM, you wrote:
>
>> Looking into the RQCC this morning I found an excellent discussion on
>> this by Mark Waddingham in in request submitted by Bjrnke:
>> <http://quality.runrev.com/qacenter/show_bug.cgi?id=6912>
>
> Thanks for pointing this one out. I added votes as well.
>
>> While I was there I added a request to solve the bloat problem with keys
>> of sub-arrays within a parent array in which all of the sub-arrays use
>> the same key names:
>> <http://quality.runrev.com/qacenter/show_bug.cgi?id=8304>
>
> I like the idea of a struct-like assembly, but wouldn't the same thing
> be accomplished by using numeric constants (and possibly faster, if I
> understand the way the numeric arrays work):
>
> constant kName = 1
> constant kParty = 2
> constant kAddress = 3
> -- etc
>
> put "R" into member[kParty]
Moments like this make me glad you're on this list. :)
Yes, that definitely reduces the bloat, down to a single byte per field.
A struct would reduce it even more (at least for arrays with more than
four fields), but that's a big step forward for keeping file sizes down
that can be used today.
Thanks for the idea -
--
Richard Gaskin
Fourth World
Rev training and consulting: http://www.fourthworld.com
Webzine for Rev developers: http://www.revjournal.com
revJournal blog: http://revjournal.com/blog.irv
More information about the use-livecode
mailing list