develooper Front page | perl.perl6.language | Postings from June 2001

RE: Properties and stricture

Thread Previous | Thread Next
From:
David Whipp
Date:
June 5, 2001 13:36
Subject:
RE: Properties and stricture
Message ID:
000701c0edfe$f13ae9e0$926464c4@intranet.fastchip.com
Michael G Schwern [mailto:schwern@pobox.com] wrote:
> Of course, there's problems of order of definition.  What happens if
> Bar.pm is loaded before Foo?  Dunno.

simple sematics can be defined. If we see a declaration:

  package Foo is encapulated;

then we throw an error if the namespace, Foo, is not empty.
At the end of the package (either EOF or a new package decl) then
the namespace is sealed.


Dave.
--
Dave Whipp, Senior Verification Engineer,
Fast-Chip inc., 950 Kifer Rd, Sunnyvale, CA. 94086
tel: 408 523 8071; http://www.fast-chip.com
Opinions my own; statements of fact may be in error. 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About