I don't like changing the semantics without changing the syntax.
There's too much of that in perl6 already. But shouldn't index() be a
method of the string object anyway?
--Bill.
[EMAIL PROTECTED] (Aaron Sherman) writes:
> Something that has long bothered me in C and Perl is the return from
>
Steve Tolkin wrote:
> { @$appendline =~ s//
> I think this needs a backslash in front of the < symbol, and a space
> after in_marker, i.e. it should be:
>
> { @$appendline =~ s//\;
Isn't the replacement part of a substitution is still a string?
Having the replacement being a rule would
Larry Wall wrote:
> On 20 Sep 2002, Aaron Sherman wrote:
>
> : Does that mean that I can't
> :
> : for $x -> $_ {
> : for $y -> $z {
> : print "$_, $z\n";
> : }
> : }
> :
> : And expect to get different values?
>
> That's correct. N
Luke Palmer wrote:
> my @v = $( &func() );
>
> Would provide scalar context. But then assign it to a list...
In the course of reading that I developed a concern about memory usage
when trying to find the size of arrays. As I understand it the Perl 5
syntax for discovering the number of
Hi!
During YAPC::Europe and all the great Perl 6 talks there, I started
thinking about doing a Perl 6 JAPH / Obfuscation.
So I downloaded parrot (twice, once from CPAN, which is broken, and
then from CVS, which worked..), installed it and came up with this rather
simple JAPH:
@p =('j','a','e','
Tanton Gibbs wrote:
> (7) == 7
>
> why? Otherwise, we couldn't use parens for mathematical expressions
But as Luke Palmer pointed about above, this syntax would make
square brackets redundant, so we could now use those unambiguously for
overriding mathematical precedence ...
(Sorry about t
# New Ticket Created by Leopold Toetsch
# Please include the string: [perl #17468]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt2/Ticket/Display.html?id=17468 >
This patch
- removes check_fingerprint (this should be done in PBC unpack)
- simplif
# New Ticket Created by Leopold Toetsch
# Please include the string: [perl #17469]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt2/Ticket/Display.html?id=17469 >
This patch is additionally needed for #17455. Due to missing
dependencies on build
# New Ticket Created by Leopold Toetsch
# Please include the string: [perl #17470]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt2/Ticket/Display.html?id=17470 >
This patch adds a test case for restarting the interpreter. To get this
running, pa
As PBC files might be built from different core.ops aka core_ops.c, it
is necessary to add a fingerprint to PBC files, to validate, that the
interpreter uses the very same ops, when running the PBC.
- during "make" a fingerprint of core_ops.c is generated:
$ perl -pe's/\s//g' < core_ops.c | md5
On Fri, Sep 20, 2002 at 09:46:58PM -0600, John Williams wrote:
> On Fri, 20 Sep 2002, Jonathan Scott Duff wrote:
> > > But I cannot tell whether (7) is list context or numeric context,
> >
> > Nope, you can't tell without the surrounding context:
> >
> > (7) + 0;# numeric
> > $a =
On Sat, 21 Sep 2002, Leopold Toetsch wrote:
> As PBC files might be built from different core.ops aka core_ops.c, it
> is necessary to add a fingerprint to PBC files, to validate, that the
> interpreter uses the very same ops, when running the PBC.
>
> - during "make" a fingerprint of core_ops.c
On Sat, 21 Sep 2002, Jonathan Scott Duff wrote:
> > I can't tell whether (7).length is asking for the length
> > of 7 or the length of a list, but I would be badly surprised if
> > (3+4).pow(2) returned 1 instead of 49.
>
> So, you expect 7.pow(2) to work? I'd expect it to be an error (this
> isn
On 21 Sep 2002, Smylers wrote:
>
> Does that matter? This example is fairly contrived, and anybody
> actually concerned about this can always use:
>
> $num = @massive.length;
>
> So perhaps this isn't a problem.
$num = +@massive;
would also set $num to the length, not the ref.
~ John Willi
On Sat, Sep 21, 2002 at 10:05:50AM -, Smylers wrote:
> Larry Wall wrote:
>
> > On 20 Sep 2002, Aaron Sherman wrote:
> >
> > : Does that mean that I can't
> > :
> > : for $x -> $_ {
> > : for $y -> $z {
> > : print "$_, $z\n";
> > : }
> > :
On Sat, Sep 21, 2002 at 11:36:49AM -0600, John Williams wrote:
> On Sat, 21 Sep 2002, Jonathan Scott Duff wrote:
> > > I can't tell whether (7).length is asking for the length
> > > of 7 or the length of a list, but I would be badly surprised if
> > > (3+4).pow(2) returned 1 instead of 49.
> >
> >
Sean O'Rourke wrote:
> On Sat, 21 Sep 2002, Leopold Toetsch wrote:
>
>
>>As PBC files might be built from different core.ops aka core_ops.c, it
>>is necessary to add a fingerprint to PBC files, to validate, that the
>>interpreter uses the very same ops, when running the PBC.
>>
>>- during "make
On Mon, Sep 16, 2002 at 10:32:17AM +0300, Markus Laire wrote:
> On 15 Sep 2002 at 22:41, Steve Fink wrote:
>
> Your code seems to backtrack to the beginning at every failure. First
> code only backtracks one char at time.
> > Huh? What implementation is that? I think my naive implementation
> >
On 21 Sep 2002, Smylers wrote:
> Larry Wall wrote:
>
> > On 20 Sep 2002, Aaron Sherman wrote:
> >
> > : Does that mean that I can't
> > :
> > : for $x -> $_ {
> > : for $y -> $z {
> > : print "$_, $z\n";
> > : }
> > : }
> > :
> > : And exp
On 21 Sep 2002, Smylers wrote:
> Luke Palmer wrote:
>
> > my @v = $( &func() );
> >
> > Would provide scalar context. But then assign it to a list...
>
> In the course of reading that I developed a concern about memory usage
> when trying to find the size of arrays. As I understand it th
On Wed, Sep 18, 2002 at 05:01:35PM +0200, Damian Conway wrote:
> Steve Fink wrote:
>
> >What possible outputs are legal for this:
> >
> > "aaa" =~ /( a { print 1 } | a { print 2 })* { print "\n" } x/
>
> Unless Larry specifies a required semantics, there are potentially very
> many acceptable o
> On Sat, Sep 21, 2002 at 11:36:49AM -0600, John Williams wrote:
> > On Sat, 21 Sep 2002, Jonathan Scott Duff wrote:
> >
> > Anyway, (7) or (3+4) should yield a number, not a list, because
> > otherwise every math expression will break.
>
> Why can't perl be smart enough to figure out what we me
On Sun, 22 Sep 2002, Markus Laire wrote:
> > On Sat, Sep 21, 2002 at 11:36:49AM -0600, John Williams wrote:
> > > On Sat, 21 Sep 2002, Jonathan Scott Duff wrote:
> > >
> > > Anyway, (7) or (3+4) should yield a number, not a list, because
> > > otherwise every math expression will break.
> >
> >
Luke Palmer wrote:
>On Sun, 22 Sep 2002, Markus Laire wrote:
>You know, the idea that square brackets are the only things that can make
>lists is starting to really appeal to me. Similar for squiggles and
>
>So parens really do provide grouping, not list constructing. Thus, this
>can stay:
Jeff wrote:
>
> Mike Lambert wrote:
> >
> > > First, a thank you to whoever it is who is running these test-drive
> > > machines (there's no name in the build log). Also, a thanks to Compaq
> > > for setting them up.
>
> Yes, many thanks to Compaq.
>
> > Yes, I had noticed that. And that struc
25 matches
Mail list logo