First of all, apologies for sending through Hotmail; I'm home for the
weekend, and have no access to email. However, I figured I should
send this out as soon as I finished so that people have something to
think about besides numbers :)
Anyways, here's a first draft of the string documentation, I'
First, apologies for the typos; fixed.
Do you mean \Q or \Q{}, or both ?
\Q{}; \Q{} is different than \Q, at least according to the Apocalypse.
\Q{}Escape all characters that need escaping
from this point on in the current string (except "}")
Yeah.
Then
print "@
From: James Mastros <[EMAIL PROTECTED]>
On 11/29/2002 7:40 PM, Joseph Ryan wrote:
(*Note: Please reply to [EMAIL PROTECTED], as this is only a temporary email
address)
- References and Object stringification hasn't been defined.
I belive it goes somthing like this:
All objec
(* Note: Please reply to [EMAIL PROTECTED] *)
: Arcadi Shehter <[EMAIL PROTECTED]>
: "Joseph Ryan" <[EMAIL PROTECTED]>
issue :
* space is allowed (OR NOT ???)
between qq ( and friends ) and following delimiter
qq ( ... ) ;
qq ) ... ( ;
q
: Luke Palmer <[EMAIL PROTECTED]>
: Joseph F. Ryan <[EMAIL PROTECTED]>
> Perhaps only first level references should stringify nicely, and inner
> references stringify perl5 style. I think that if Data::Dumper style
> stringification is wanted, then a C<< use Data::Dumper; >> shouldn't
> anger
(* Note: Please reply to [EMAIL PROTECTED] *)
(* Don't reply to this hotmail address! I'm deleting it tomarrow! *)
(* Fight the urge! *)
: Jonathan Scott Duff <[EMAIL PROTECTED]>
: Joseph Ryan <[EMAIL PROTECTED]>
> Anyways, here's a first draft of the stri
Sean O'Rourke <[EMAIL PROTECTED]> wrote:
On Thu, 12 Dec 2002, Jared Rhine wrote:
> On to some tests, although I'm curious to see how tests of literals
> turn out. Probably a lot of comparisons between different
> representations of the same thing.
Warning: most of the tests won't work now becau
Benjamin Goldberg wrote:
K Stol wrote:
The register stuff, I presume, is register allocation and the like? When
targeting IMCC, you can use an infinite amount of registers. Just keep a
counter in the code generator, each time a new register is needed, just
increment the counter and add a "${S|N|I
Leopold Toetsch wrote:
Luke Palmer <[EMAIL PROTECTED]> wrote:
You mind submitting a patch to put this in the languages/pirate
I'd appreciate that very much. Pie-thon, here we come ...
Speaking of adding new projects to languages, I have a partially complete
JVM->PIR translator done. It's comp
Michal Wallace wrote:
On Sun, 3 Aug 2003, K Stol wrote:
What do you think? Want to try squishing pirate/python
and pirate/lua together? :)
Yeah, I like the idea. Let's try this out.
Well, I finished reading your report[1] and
posted some of my (rather unorganized) thoughts
up at
Jonathan Scott Duff wrote:
On Thu, Aug 14, 2003 at 03:00:54PM +0100, Alberto Manuel Brand?o Sim?es wrote:
On Thu, 2003-08-14 at 14:49, Simon Cozens wrote:
[EMAIL PROTECTED] (Alberto Manuel Brandão simões) writes:
The question is simple, and Dan can have the same problem (or him or
L
So, I know how to use find_method to get a method from an object;
but is there any way to dynamically add a method to a class?
Basically, I want to do something like this:
newclass P2, "Foo"
new P1, P2
addr I0, _Foo::somemethod
setmethod P1, "somemethod", I0
findmethod P0, P1, "s
- Original Message -
From: Luke Palmer <[EMAIL PROTECTED]>
Date: Saturday, December 18, 2004 4:16 pm
Subject: Re: Auto My?
> Rod Adams writes:
> There are pros and cons, and it basically ends up being a design
> choice.
> > Well, at least when strictures are on. When they are off, the
>
Steve Fink wrote:
Neither of those seems right to me. The first keys off of the position
of the binary, which could be anywhere with respect to the library
module you're in; the second is relative to whatever the current
directory is while you're running the script. I would think that
something lik
- Original Message -
From: Luke Palmer <[EMAIL PROTECTED]>
Date: Tuesday, June 29, 2004 6:13 am
Subject: Re: A stack for Perl?
> > 1;
> > $_='foo bar baz';
> > split;
> > # @STACK now is (1, 'foo', 'bar', 'baz');
> >
> To boot, I can't think of a way to implement that in currently
- Original Message -
From: Luke Palmer <[EMAIL PROTECTED]>
Date: Tuesday, June 29, 2004 7:31 pm
Subject: Re: undo()?
>
> Oh no! Someone doesn't understand continuations! How could this
> happen?! :-)
>
> You need two things to bring the state of the process back to an
> earlierstate:
- Original Message -
From: David Storrs <[EMAIL PROTECTED]>
Date: Thursday, July 1, 2004 7:55 pm
Subject: Re: if not C<,> then what?
> On Thu, Jul 01, 2004 at 04:14:37PM -0700, Jonathan Lang wrote:
> > Juerd wrote:
> >
> > If you're really enamoured with the infix operator syntax,
> cons
- Original Message -
From: Dan Hursh <[EMAIL PROTECTED]>
Date: Friday, July 2, 2004 2:23 pm
Subject: push with lazy lists
> Hi,
>
> If I can assume:
>
> @x = 3..5;
> say pop @x;# prints 5
>
> @x = 3..5;
> push @x, 6;
> say pop @x;# prints 6
>
- Original Message -
From: Dan Hursh <[EMAIL PROTECTED]>
Date: Friday, July 2, 2004 10:32 pm
Subject: Re: push with lazy lists
>> Joseph Ryan wrote:
> I guess that's true with X..Y lazy lists. I
thought there were
> other
> ways to make lazy lists, like giv
- Original Message -
From: Larry Wall <[EMAIL PROTECTED]>
Date: Wednesday, July 7, 2004 11:25 pm
Subject: Re: push with lazy lists
> On Fri, Jul 02, 2004 at 09:32:07PM -0500, Dan
Hursh wrote:
> : how 'bout
> :
> : @x = gather{
> : loop{
> : take time
> : }
> : } # can
> On Wed, Jul 07, 2004 at 11:50:16PM -0400, JOSEPH RYAN wrote:
>
> To answer the latter first, rand (with no arguments) returns a number
> greater than or equal to 0 and less than 1 which when used as an index
> into an array gets turned into a 0.
>
> As to why the second p
- Original Message -
From: David Storrs <[EMAIL PROTECTED]>
Date: Monday, July 19, 2004 5:04 pm
Subject: Re: Why do users need FileHandles?
> Second, I would suggest that it NOT go in a library...this is
> reasonably serious under-the-hood magic and should be integrated into
> the core for
- Original Message -
From: Luke Palmer <[EMAIL PROTECTED]>
Date: Thursday, July 22, 2004 2:48 pm
Subject: Re: Why do users need FileHandles?
>> JOSEPH RYAN writes:
> >
> > How would integrating this in the core make it more efficient? Core
> > or not, I
- Original Message -
From: James Mastros <[EMAIL PROTECTED]>
Date: Sunday, July 18, 2004 5:03 am
Subject: xx and re-running
> Recently on perlmonks, at
> http://perlmonks.org/index.pl?node_id=375255,
> someone (DWS, actually) brought up the common error of expecting x
> (in
> particula
- Original Message -
From: Dan Hursh <[EMAIL PROTECTED]>
Date: Thursday, July 22, 2004 3:07 pm
Subject: Re: Why do users need FileHandles?
> Luke Palmer wrote:
>
> > JOSEPH RYAN writes:
> >
> >>- Original Message -
> >>From: David S
I define "outside the core" as "anything that isn't
packaged with Perl itself". Things you'd define as
"part of the language." I/O stuff, threading stuff,
standard types, builtin functions, etc. And yeah,
most of that stuff will be written natively in C,
PIR, or be part of parrot itself.
I thi
- Original Message -
From: Jared Rhine <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 12:19 pm
Subject: Current state?
> [Herbert == [EMAIL PROTECTED] on Wed, 8 Sep 2004 15:18:27 +]
>
> Herbert> And any way for an overeager newbie to help?
>
> The classic answer is "write te
- Original Message -
From: Dan Sugalski <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 1:56 pm
Subject: Re: Current state?
> At 11:21 AM -0600 9/8/04, Patrick R. Michaud wrote:
> >On Wed, Sep 08, 2004 at 09:56:12AM -0700, Larry Wall wrote:
> >> On Wed, Sep 08, 2004 at 07:33:45AM -
- Original Message -
From: "Patrick R. Michaud" <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 1:21 pm
Subject: Re: Current state?
> On Wed, Sep 08, 2004 at 09:56:12AM -0700, Larry Wall wrote:
> > On Wed, Sep 08, 2004 at 07:33:45AM -0600, Patrick R. Michaud wrote:
> > : We're in th
- Original Message -
From: Richard Jolly <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 6:02 pm
Subject: multiple languages clarification - newbie
> Hi,
>
>
>
> Can someone provide clarification on what mixing languages will
> look
> like in practice, or point me to where its
- Original Message -
From: mAsterdam <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 8:31 pm
Subject: Re: multiple languages clarification - newbie
> Joseph Ryan wrote:
>
> >>Can someone provide clarification on what mixing languages will
> >>look li
- Original Message -
From: Larry Wall <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 3:09 pm
Subject: Re: Current state?
> On Wed, Sep 08, 2004 at 02:47:24PM -0400, JOSEPH RYAN wrote:
> : We tried that as an optimization in the prototype
> : Perl6 compiler. It e
- Original Message -
From: JOSEPH RYAN <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 8:58 pm
Subject: Re: multiple languages clarification - newbie
>macro prolog is parsed(/
> \: ([
> <[^p]>+ ::
> | p
>
- Original Message -
From: Jared Rhine <[EMAIL PROTECTED]>
Date: Wednesday, September 8, 2004 5:22 pm
Subject: Current state?
> [Patrick == [EMAIL PROTECTED] on Wed, 8 Sep 2004 11:51:18 -0600]
>
> Patrick> ...in the immediate future we'll be wanting rules/grammar
> Patrick> tests (to te
- Original Message -
From: "Patrick R. Michaud" <[EMAIL PROTECTED]>
Date: Tuesday, September 14, 2004 3:56 pm
Subject: Re: Current state?
> On Tue, Sep 14, 2004 at 12:42:59PM -0700, Larry Wall wrote:
> > : Of course, this is really language design -- Larry, you listening?
> >
> > Sure, I'
- Original Message -
From: Juerd <[EMAIL PROTECTED]>
Date: Thursday, September 16, 2004 2:55 pm
Subject: Re: Still about subroutines...
> Jonathan Scott Duff skribis 2004-09-16 13:44 (-0500):
> > Speaking of which ... why is it that $?foo and became
> $<>> and <> respectively?
>
> per
Dan Sugalski wrote:
On Mon, 25 Aug 2003, Joseph Ryan wrote:
So, I know how to use find_method to get a method from an object;
but is there any way to dynamically add a method to a class?
Basically, I want to do something like this:
newclass P2, "Foo"
new P1, P2
add
From what I understand from the IMCC documentation, the ".namespace"
macro prepends the namespace name plus "::" to all names within it.
I figured that this would be handy in distinguishing which class a
method belongs to without causing name clashes. For instance:
.namespace foo
.sub ba
Leopold Toetsch wrote:
Joseph Ryan <[EMAIL PROTECTED]> wrote:
From what I understand from the IMCC documentation, the ".namespace"
macro prepends the namespace name plus "::" to all names within it.
It's for variables only, currently.
I figu
According to the CVS log for /languages/imcc/imcc.l, "::" is now
allowed inside an identifier name. However, when I try to create
an example like:
.sub foo::bar
end
.end
It gives the error:
error:imcc:parse error, unexpected LABEL, expecting IDENTIFIER
Is this a bug, or am I misu
Dan Sugalski wrote:
Here's the scoop:
Metadata for classes is simple. In PIR/assembly, they're noted with
.things:
.class Foo
.is bar
.is baz
.does some_thing
.member x
.member y
.member z
.ssalc
Unless someone tells me that ssalc is horribly obscene in some relatively
common
Leopold Toetsch wrote:
Here is a list of files that I consider to be unused:
Hmmm... obsolete... unused... sounds a lot like languages/perl6 :-P
- Joe
Sean O'Rourke wrote:
[EMAIL PROTECTED] (Scott Walters) writes:
I have work-related reason to add a "B" backend for Perl 5 to the
perl6 compiler. I'm looking at creating an assembler for Perl 5's
"B" bytecode along the lines of IMCC, and creating patches against
languages/perl6/IMCC.pm and langu
Luke Palmer wrote:
So, we can have :: in names, but that doesn't represent any inherent
relationship between the module before the :: and the one after. I
think this is an important thing to keep.
However, will it be possible to, for example, do:
module Foo;
module Bar { ... }
And refer
Damian Conway wrote:
Larry wrote:
This kind of behaviour is more useful for nested classes, I suspect, but
it should certainly be available for nested modules as well.
So, what's the difference between a module and a class, and
why would you want dynamic namespaces? Isn't that something
you'd
Pete Lomax wrote:
On Mon, 17 Nov 2003 11:35:51 -0800, Sterling Hughes
<[EMAIL PROTECTED]> wrote:
I think this would be a *very* cool thing.
What he said.
Ditto.
- Joe
--- Begin Message ---
I
Think this would be cool, and I will help.
my research masters is retargetting gcj to parrot.
I am only a month into it so I have not put up a project page yet.
On Tuesday 18 November 2003 00:04, Joseph Ryan wrote:
> Pete Lomax wrote:
> >On Mon, 17 Nov 2003
Damian Conway wrote:
Seiler Thomas wrote:
So... lets call a function instead:
my $is_ok = 1;
for 0..6 -> $t {
if abs(@new[$t] - @new[$t+1]) > 3 {
$is_ok = 0;
last;
}
}
if $is_ok {
yada() # has sideeffects...
}
That's just:
David Wheeler wrote:
On Tuesday, November 18, 2003, at 06:11 PM, Joseph Ryan wrote:
Not to be a jerk, but how about:
my $is_ok = 1;
for @array_of_random_values_and_types -> $t {
if not some_sort_of_test($t) {
$is_ok = 0;
last;
}
}
if $is
The Perl 6 Summarizer wrote:
Do Steve Fink's debugging for him
Steve Fink had a problem with some generated code throwing a segfault
when it was run and, having hit the debugging wall himself, posted the
code to the list and asked help. Leo tracked down the bug in Parrot and
fixed it.
[EMAIL PROTECTED] wrote:
The subject says it all.
As parrot is designed to be targetted by many langauges,
how will it handle 'eval' opcodes for those different languages?
Shell out to a seperate process?
As far as Perl6 (which will be written in Perl6) goes, an easy
solution is to design the
Dmitry Dorofeev wrote:
Hi all.
Sorry if this idea|question has been discussed or has name which i
don't know about.
I'd like to write
Class myclass : a {
forget method area;
forget method move;
method put;
}
so methods getX, getY, size will be 'inherited'.
Methods 'area' and 'move' will be n
Luke Palmer wrote:
Austin Hastings writes:
Hmm. The text and examples so far have been about methods and this
seems to be about multi-methods. Correct me if I'm wrong ...
You're wrong. Consider my example, where via single inheritance we reach a
"layered" list of methods, each of which
Woops, sent it to the wrong list!
- Joe
Joseph Ryan wrote:
Luke Palmer wrote:
Austin Hastings writes:
Hmm. The text and examples so far have been about methods and this
seems to be about multi-methods. Correct me if I'm wrong ...
You're wrong. Consider my example, where
Larry Wall wrote:
On Fri, Feb 27, 2004 at 09:08:31AM -0500, Dan Sugalski wrote:
: Nope. If a language wants to provide get/set methods for class
: attributes it needs to create those methods at compilation time.
For Perl 6 it's a single method that might be lvaluable depending on
the declaration
55 matches
Mail list logo