Instance and Class disambiguation?

2008-01-20 Thread Ovid
If I call this:

  if $class.^can('wibble') { ... }

Does Perl 6 return false if that's only an instance method?  Will the
WALK iterator returned by .^can return references to instance methods?

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/


Perl 6 wiki: (new) "Perl 6 Marketplace" and "Perl 6 Books and Media"

2008-01-20 Thread Conrad Schneiker
Latest changes below. As always, your contributions are solicited. (You can
send me info if you don't have time to add it yourself.)

>> New:

"Perl 6 Marketplace" (for products, services, training, off-wiki job info)
http://www.perlfoundation.org/perl6/index.cgi?perl_6_marketplace

"Perl 6 Books and Media" (existing and forthcoming)
http://www.perlfoundation.org/perl6/index.cgi?perl_6_books_and_media

>> Updated:

"Perl 6 Articles and Presentations"
http://www.perlfoundation.org/perl6/index.cgi?perl_6_articles_and_presentati
ons

"Perl 6 People"
http://www.perlfoundation.org/perl6/index.cgi?perl_6_people

>> Thanks:

to Michal Jurosz (http://perl6.cz/wiki/Perl_6_and_Parrot_links) for lots of
useful info.

Best regards,
Conrad Schneiker

www.AthenaLab.com

http://www.perlfoundation.org/perl6  - Official Perl 6 Wiki
http://www.perlfoundation.org/parrot - Official Parrot Wiki
http://www.perlfoundation.org/perl5  - Official Perl 5 Wiki




Re: Instance and Class disambiguation?

2008-01-20 Thread Jonathan Lang
Ovid wrote:
> If I call this:
>
>   if $class.^can('wibble') { ... }
>
> Does Perl 6 return false if that's only an instance method?  Will the
> WALK iterator returned by .^can return references to instance methods?

As I understand it, Perl 6 generally doesn't bother with the
class-vs-instance distinction.  Instead, it uses an "objects and
prototypes" paradigm, much like the distinction between proper nouns
and common nouns.

-- 
Jonathan "Dataweaver" Lang


[svn:perl6-synopsis] r14492 - doc/trunk/design/syn

2008-01-20 Thread pmichaud
Author: pmichaud
Date: Sun Jan 20 21:23:36 2008
New Revision: 14492

Modified:
   doc/trunk/design/syn/S29.pod

Log:
Update location of S29 to point to new repositories
(the old openfoundry.org address is way out of date).
Reported by diakopter++ .


Modified: doc/trunk/design/syn/S29.pod
==
--- doc/trunk/design/syn/S29.pod(original)
+++ doc/trunk/design/syn/S29.podSun Jan 20 21:23:36 2008
@@ -17,6 +17,7 @@
 This pod is just a placeholder for the draft of Synopsis 29 that
 currently lives at
 
-http://svn.openfoundry.org/pugs/docs/Perl6/Spec/Functions.pod
+http://svn.pugscode.org/pugs/docs/Perl6/Spec/Functions.pod
+http://perlcabal.org/syn/S29.html
 
 =for vim:set expandtab sw=4: