Thursday, May 11, 2006, 12:44:11 AM, Pierre Johnson wrote:

> Why would any person write expression this way? (in a 'x)

A quick search over my local script collection brought up a multitude
of scripts that rely on 'in working the way it is. And actually, there
is only one way to use 'in, so if this is not the intended design, the
designer would probably rather have left it out.

There are situations that require the use of 'in.

A simple example:

  mysql: context [
    upsert: func [ ... ] [ ... ]
  ]

Suppose you work using REBOL's console and use mysql/upsert regularly,
maybe you want have a more handy name for it?

  upsert: get in mysql 'upsert

I'm unaware of any other way to get at the function! value of a word
within a context.

> Oh wait, here's your REBOL script that improves incognito?

I believe that spelling has an important role to play - I believe this
due to various experiments on my own and yes, even the usage help for
'alias uses the term "spelling". I believe that Ladislav's 'aliases?
accurately models REBOL's behaviour - at least I wasn't able to prove
otherwise.

I'd be happy to be shown that your 'incognito? is more accurate than
'aliases? or at least equally accurate but simpler. At the moment its
accuracy is inferior - it simply does not work in the general case.

-- 
Best regards,
 Andreas


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to