Constructing and calling a handler as "do"

Kay C Lan lan.kc.macmail at gmail.com
Tue Jan 15 21:14:45 EST 2008


On Jan 14, 2008 8:18 AM, Randall Lee Reetz <randall at randallreetz.com> wrote:

> I use delimeters so that i can auto deconstruct (this is much slower if
> one has to filter for cap letters).
>

This is lightning bolt brilliant!

I've had the odd occasion where I've needed to be able to 'interpret' and
'manipulate' an bunch of object names and have usually resorted to coming up
with some kind of naming convention that forces a prefix and/or suffix to be
a fixed number of char long so I can search for 'char 1 to 3' (or 4 or 5
or.....because looking for the offset of the char whose charToNum fell
between the range of 65 to 90 seemed more difficult to me that just going
with fixed length prefix/suffix) which typically resulted in names that
weren't as self evident as I'd like. To use an underscore, change the
itemDelimiter and search by item is so staring you in the face Rev chunk
obvious I can't believe I've spent so much time renaming things to fit my
ever-changing fixed width prefix/suffix system.

I'd like to try and blame Richard, for his excellent 'script style' bible,
but midWord capitalization for me dates back to the origin of HyperCard so
it's a habit that clearly blinded me to the advantages that could be
afforded by using a naming convention which ALSO incorporated taking
advantage of chunk expressions.

Randall, any tips, tricks or pitfalls to using this approach?



More information about the use-livecode mailing list