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 Should this be valid in perl 6?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yiyi Hu  
View profile  
 More options Aug 16 2005, 3:03 am
Newsgroups: perl.perl6.compiler
From: yiy...@gmail.com (Yiyi Hu)
Date: Tue, 16 Aug 2005 15:03:39 +0800
Local: Tues, Aug 16 2005 3:03 am
Subject: Should this be valid in perl 6?
Indirect object notation now requires a colon after the invocant if
there are any arguments. If there are no arguments and you omit the
colon, the notation is parsed either as a named unary operator or a
list operator with one argument. In any case, all of these come out to
the same thing:

    $handle.close
    close($handle)
    close $handle:
    close $handle

From Synoposis, It's said that the last example( close $handle )
should be valid.
But in pugs, It isn't.

class TMP { method tmp { "Hello".say}; }; my TMP $t .= new;
tmp $t;

So, I wonder, If perl 6 will allow "tmp $t;"

Thanks,
Xinming


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.