--- In [email protected], "brucexs" <bruc...@...> wrote:
> Looks like no need for plugins to change if I go this way.
Even nicer.
>
> If they are nested, does only the innermost apply?
>
> with expr1
> with expr2
> .prop = something
> endwith
> endwith
Yes. The usual reason for nesting with would go like this:
with expr1
.something
with .anotherThing
.prop = somethingElse
endwith
endwith
Convention is that inner with masks outer one. Leading dot
means "apply to the object mentioned in the most recent with".
May be problematic allowing
with .anotherThing
> Does the .prop resolve to expr2.prop? Or is normal practice that if prop is
> valid with expr1 but not with expr2, then it is taken as expr1.prop?
>
>
> If only the innermost is ever used, it is not too hard (just keep stack of
> variables and only check the last one which was set). But if the normal
> interpretation is to check all open withs, that would be too hard.
>