Jeremy Howard wrote:
>
> This is one of those
> few cases where VB has nicer syntax--within a 'with' block you have to
> precede a property name with '.' to get the with block scope:
>
> dim height as double
> dim ws as new Excel.worksheet // 'worksheet' has a 'height' property
>
> with ws
> print .height // Accesses ws.height
> print height // Accesses me.height
> end with
>
> Whatever syntax we go with to get 'with' type scoping, please let's make
> sure that we can still access the default scope within the block.
Lets use hats again then.
%ws{
print ^$height; #prints $ws{height}
print $height; # perl5 visibility rules
};
AFAIK, the entirety of %name{something here} is unplowed ground, as
far as perl syntax goes.
--
David Nicol 816.235.1187 [EMAIL PROTECTED]
Does despair.com sell a discordian calendar?
- Re: pascal-like "with" was Re: Default file... Dave Storrs
- Re: pascal-like "with" was Re: Default file... Johan Vromans
- Re: pascal-like "with" was Re: Default file... Dave Storrs
- Re: pascal-like "with" was Re: Default file... John Porter
- Re: pascal-like "with" was Re: Default file... Johan Vromans
- Re: pascal-like "with" was Re: Default file... Dave Storrs
- Re: pascal-like "with" was Re: Default fileh... Clayton Scott
- Re: pascal-like "with" was Re: Default fileh... Dave Storrs
- implied pascal-like "with" or "express&... David L. Nicol
- Re: implied pascal-like "with" or "expr... Jeremy Howard
- Re: implied pascal-like "with" or "expr... David L. Nicol
- Re: implied pascal-like "with" or "expr... Jonathan Scott Duff
- Re: implied pascal-like "with" or "expr... David L. Nicol
- Re: implied pascal-like "with" or "expr... Dave Storrs
- Re: implied pascal-like "with" or "expr... Brian Wheeler
- Re: implied pascal-like "with" or "expr... Jonathan Scott Duff
- Re: implied pascal-like "with" or "expr... Dave Storrs
- Re: implied pascal-like "with" or "expr... Ken Fox
- Re: implied pascal-like "with" or "expr... Jeremy Howard
- Re: implied pascal-like "with" or "expr... David L. Nicol
- Re: implied pascal-like "with" or "expr... Ken Fox
