develooper Front page | perl.perl6.language | Postings from March 2005

Re: Comma in (sub) traits?

Thread Previous | Thread Next
Thomas Sandlaß
March 7, 2005 08:53
Re: Comma in (sub) traits?
Message ID:
Larry Wall wrote:
> Yes, and it wouldn't work at all if you ever wanted to autoload anything.
> If we ever get to where we're autoloading class bodies, they'd have the
> same problem with embedded declarations.  The compiler can't work with
> information that isn't there.

This is something that is blurry to me: how does one separate declaration
and implementation. It is clear that a declaration has got a {...} block
and an implementation doesn't. But does that mean that there are package
files that function like header files in C++ or like interface files in
Ada and Modula?

Or does that work more like Cecil signature declarations which can be
spread out as needed and actually express a callers expectations which
can be matched with the implementation side?

TSa (Thomas Sandlaß)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About