"new new" understood, thanks

So, "vid-face" is a local variable defined in "system/view/vid" right?

but i still don't understand why i can symply refer to "vid-face"
without saying that is under "system/view/vid"

if in the console i type "vid-face" i get an error ..

--Carlo

2005/11/25, Ladislav Mecir <[EMAIL PROTECTED]>:
>
> Cavva napsal(a):
>
> >First: Hi All
> >
> >Second:
> >
> >these are my first step on the REBOL world, so consider me a newbie.
> >
> >In my "way to understand REBOL" i've tried to see what actually "layout"=
 do=3D
> >es,
> >so i type "source layout" and there are some line of code that i've
> >not understand:
> >
> >    new-face: make any [
> >        all [parent object? new new]
> >        all [parent word? new get-style new]
> >        vid-face
> >    ]
> >
> >so, it basically try to set "new-face" to the parent or parent style
> >if a /parent is used right?
> >why i need to type "new new" ?
> >
> >
> >
> this is hardly "new new". I think, that you need to know how ALL works.
> Here is what is the meaning of all [parent object? new new]:
>
> 1) it checks PARENT. 2) If true, it checks, whether NEW is and object.
> 3) If true, it yields NEW as result.
>
> A more understandable way of doing it might be:
>
> new-face: make case [
>     all [parent object? new] [new]
>     all [parent word? new] [get-style new]
>     true [vid-face]
> ]
>
> >What is "vid-face", where is defined?
> >
> >
> >
> that is a local variable
>
> >-- Carlo
> >
> >
> -L
> --
> 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.

Reply via email to