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
misleading compiler message
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
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
 
Terrence Brannon  
View profile  
 More options Mar 7 2005, 7:13 am
Newsgroups: perl.perl6.compiler
From: bauh...@metaperl.com (Terrence Brannon)
Date: Mon, 07 Mar 2005 12:13:56 +0000
Local: Mon, Mar 7 2005 7:13 am
Subject: [pugs] misleading compiler message
The following program:
---------------------

my @first_set = qw(1 1 1 1 1 1 1 1 1 1 1 1 1 1);
my @new_set = qw(1 2 1 1 1 1 1 1 1);

if (any(@first_set) != any(@new_set)) {
  "a fluctuation in the readings has been detected" . say;

}

Yields this error message:
-------------------------

terry@Abulafia:~/perl/talks/p6-junctions$ pugs any-any.p6

unexpected "{"
expecting term postfix, operator, postfix conditional, ternary conditional, ";" or end of input
NonTerm "any-any.p6" (line 4, column 39)

Abutting the period to the string yields a running program:

my @first_set = qw(1 1 1 1 1 1 1 1 1 1 1 1 1 1);
my @new_set = qw(1 2 1 1 1 1 1 1 1);

if (any(@first_set) != any(@new_set)) {
  "a fluctuation in the readings has been detected".say;

}

The error message had me staring at the line above the "..." . say
because it said there was a problem with the open bracket.

--
        Carter's Compass: I know I'm on the right track when,
           by deleting something, I'm adding functionality.


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »