Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion A Perl 6 class question

Newsgroups: perl.perl6.language
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <ch...@cmb-enterprises.com>
Mailing-List: contact perl6-language-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-langu...@perl.org
Delivered-To: moderator for perl6-langu...@perl.org
X-pair-Authenticated: 208.31.40.86
Date: Fri, 9 Aug 2002 15:09:29 -0400
Mime-Version: 1.0 (Apple Message framework v482)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Subject: A Perl 6 class question
To: perl6-langu...@perl.org
Content-Transfer-Encoding: 7bit
Message-ID: <87763418-ABCB-11D6-9FA1-0005020F8EB9@cmb-enterprises.com>
X-Mailer: Apple Mail (2.482)
Approved: n...@nntp.perl.org
From: ch...@cmb-enterprises.com (Chris Dutton)
Lines: 14

Since Adam Lopesto asked a non-regex question, I don't feel quite as out 
of place for doing the same.

This one actually came to me just the other night.  Would it be possible 
in Perl 6 to create "anonymous classes"?  Something like:

my $foo_class = class {
	method new {
		# yada yada yada
	}
}

my $foo_obj = $foo_class.new;