as a side note... you can use value? to test for a value within a context at
that moment (or otherwise if its been defined globally).
I use it sometimes to delay the refresh of things which can run in an gui or
not, or which have a chance of being run before the gui is opened...
ex:
unless value? 'gui [
show gui
]
-MAx
On 9/1/07, Kai Peters <[EMAIL PROTECTED]> wrote:
>
>
> Thanks for the quick help, Tim!
>
> On Sat, 1 Sep 2007 11:39:58 -0800, Tim Johnson wrote:
> >
> > On Saturday 01 September 2007, Kai Peters wrote:
> >> config-obj: attempt [ make object! load %my-app.cfg ]
> >>
> >> probe config-obj/setting1
> >>
> >> The probe fails if there is no 'setting1 defined in %my-app.cfg
> >>
> >> Is there a way to test for this before attempting to probe (or doing=
> anything else with it)
> >> other than wrapping it in an 'attempt?
> >>
> > ;; How about 'in ?
> >>> o: context[t: 1]
> >>> in o 't
> > =3D=3D t
> >>> in o 'x
> > =3D=3D none
> >>> either in o 'x[print 'yes][print 'no]
> > no
> >>> get in o 't
> > =3D=3D 1
> >
> > HTH
> > Tim
>
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.