[REBOL] Re: Examining the layout object
From: nitsch-lists:netcologne at: 1-Jul-2002 9:07
Am Montag, 1. Juli 2002 05:37 schrieb Carl Read:
> Hi all,
>
> I've been trying to write a script to examine layouts, but I always
> get an error. Here's an example of the problem...
>
> REBOL []
> examine: func [face][
> print type? face
> if not object? face [exit]
> print type? face/pane
AFAIK panes can be functions (for iterated faces like lists).
so face/pane can be executed..
> either block? face/pane [
> foreach pane face/pane [examine pane]
> ][
> examine face/pane
> ]
> ]
> lo: layout [text-list]
> examine lo
>
> And this is the output I get from it...
>
> object
> block
> object
> object
> object
> block
> object
> ** Script Error: Cannot use subtract on block! value
> ** Where: pane
> ** Near: iter/offset: iter/old-offset: id - 1
>
> I'm totally stumped! Any ideas for what's wrong?
-Volker