I think Moore, Kenneth A wrote:
> > Anyway, one way around this could be to write a hierarchical 'get'
> > Userfunction. Let's call it 'hget', but you could call it whatever
> > you'd like. It could work something like this
> >
> > (hget ?object member.submember.subsubmember)
> >
> > You could also have an hset:
> >
> > (hset ?object member.submember.subsubmember ?value)
> >
>
> Excellent! I didn't even think of doing it at this level (I suppose most of
> Jess works like this anyway...) and simply assumed that low level Jess
> lexer/parser work would be required.
I have come to understand that everything in the universe works
this way. There is no such thing as magic, especially inside
computers. Software does dumb, simple things, over and over and over,
faster than you can really imagine. Stare at your desktop and try to
see not pictures and icons and windows, but dots; just dots. That's
all the computer does: put dots up. One at a time. If I asked you to
do the same, you'd laugh at me; it might take you days, weeks, months
to paint a single screen one dot at a time. But the computer doesn't
mind at all, and does it a hundred times a second (I have a nice
graphics card :) ) 1280x1024x100 = 131,072,000 dots each second.
On the other hand, tell your computer a joke. It will not laugh. Your
brain's dots are arranged in ways very different than the computer's
dots, but I'm of the school that believes that it's still just dots.
>
> BTW - If I implement it this way, would code with mistakes (such as passing
> too few/many arguments to hset/hget) be caught at parse time or only at
> run-time (pardon my ignorance w.r.t. UserFunctions?)
This kind of mistake always gets caught at runtime in Jess. Such is
the price of way-late binding and ease-of-use.
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (510) 294-2154
Sandia National Labs FAX: (510) 294-2234
Org. 8920, MS 9214 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------