[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Modules] Marking things in Mac::Glue



Alright, to make some parameter value a list, use [].  To make it a record,
use {}.  These can be nested, too:

  $glue->event( { parameter => { name => 'foo', style => [1, 2] } } );

Or whatever.

My initial idea (Vincent Nonnenmacher brought it up) was to do ranges like
this:

  $glue->get( $glue->obj( words => [2, 6] ) );  # get words 2 through 6

But since [] is reserved for AE lists, this is hard.

So I am thinking of a set of functions to export by request.

  $glue->get( $glue->obj( words => glueRange(2, 6) ) );  # get words 2
through 6

This would tag the values 2, 6 with a type of range, which later would be
translated when the object is constructed.

I am also thinking of exporting constants in the same way:

  glueAll
  glueAny
  glueFirst

etc.  These would basically be the same as writing:

  obj_form( typeAbsolutePosition => typeAbsoluteOrdinal => kAEFirst )

or something (even though that currently doesn't work, either :).

Anyway, the idea is that these constants and functions exported would start
with "glue", except for a select few (maybe only obj and prop?) that
wouldn't.

Any thoughts?

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org