I've just committed a new command to languages/tcl/ (r8466). While
debugging, I've experienced some problems. Using the following Tcl in
languages/tcl/example.tcl:
set a(a) b
parray a
Running normally segfaults:
mdiep$ ./parrot languages/tcl/tcl.pbc languages/tcl/example.tcl
Seg
On 6/26/05, Sam Vilain <[EMAIL PROTECTED]> wrote:
> So, we've got this "my $var is Proxy( ... )" construct in A06.
> Say you've got this class:
>
>class MagicVal {
> has Int $.varies is rw;
>
> method varies returns Int is rw {
> return my $var is Proxy ( :for($.varies),
>
On Mon, Jun 27, 2005 at 11:36:13AM +1000, [EMAIL PROTECTED] wrote:
> >Another way to look at the "eval" case is to apply it to other references.
> >
> > is_deeply( eval "{ foo => 42, bar => 23 }",
> >{ "bar", 42, "foo", 23 } );
> >
> >Even though the code is written differently
[EMAIL PROTECTED] wrote:
Another way to look at the "eval" case is to apply it to other references.
is_deeply( eval "{ foo => 42, bar => 23 }",
{ "bar", 42, "foo", 23 } );
Even though the code is written differently the resulting data is the same.
Would anyone be
On Mon, Jun 27, 2005 at 01:41:30AM +0100, Fergal Daly wrote:
> I'm not sure there is a right way to deparse closures (in general).
> For example if a variable is shared between 2 closures then it only
> makes sense to deparse both of them together. Deparsing them in turn
> will lose the sharedness
I just went to go patch in the code ref stuff to is_deeply() and found that
I had unfinished changes to the diagnostic output. Remember, it was about
including the description in the failure diagnostics. So instead of this:
/Users/schwern/tmp/test...NOK 1
Piers Cawley wrote:
For myself, I'd like to see AUTOLOAD with a signature along the lines of:
sub AUTOLOAD (Symbol $sym, ArgumentCollection $args, Continuation $cc)
returns (Code | Pair)
{
...
}
This presupposes a deal of support infrastructure, but also provides
flexibility. F
Sam Vilain wrote:
To me it is a trivial case that you want to provide a fake attribute
which for all intents and purposes behaves exactly like there was a real
attribute there, backing against another attribute.
A Date object is a classic example of this; you want to provide 0-based
and 1-based
On Sun, Jun 26, 2005 at 12:57:05PM +0100, Fergal Daly wrote:
> 1 the refs came from \&somefunc
> 2 the refs come from evaling strings of code
> 3 the refs are closures and therefore have some data associated with them
>
> For 3, it looks like B::Deparse does't handle the data at all so even
> if t
BÁRTHÁZI András skribis 2005-06-26 20:07 (+0200):
> Hmm. It really works. :) I'm getting the idea, what's the difference
> between methods and subs. Anyway, my implementation is, that ./ means
> self's method - and the class is not an instance, so it has no self.
The invocant can be a class too.
Hi,
method fun1() { fun2(); }
method fun2() { say "fun2!"; }
*** No compatible subroutine found: "&fun2"
fun2 is a method, not a sub. You need method syntax to call it:
./fun2;
Hmm. It really works. :) I'm getting the idea, what's the difference
between methods and subs. Anyway,
BÁRTHÁZI András skribis 2005-06-26 19:35 (+0200):
> method fun1() { fun2(); }
> method fun2() { say "fun2!"; }
> *** No compatible subroutine found: "&fun2"
fun2 is a method, not a sub. You need method syntax to call it:
./fun2;
> class MyMethod { method fun1() { fun2(); } sub fun2()
Hi!
I'm trying to answering my questions. Still interested in some official
answer. :)
--- 8< --- 8< --- 8< --- 8< --- 8< --- 8< --- 8< ---
class MyMethod {
method fun1() {
fun2();
}
method fun2() {
say "fun2!";
}
}
class Child is MyMethod {
}
Child.fun1();
--
BÁRTHÁZI András <[EMAIL PROTECTED]> writes:
> Hi,
>
> I'm wondering, if it's possible with Perl 6 or not?
>
> class MyClass {
>
> method mymethod($par) {
> say "mymethod called!";
> }
>
> }
>
> class ExClass is MyClass {
>
> mymethod(12);
>
> }
>
> #> pugs myprog
>
On 6/26/05, Fergal Daly <[EMAIL PROTECTED]> wrote:
> You have 3 situations
>
> 1 the refs came from \&somefunc
> 2 the refs come from evaling strings of code
> 3 the refs are closures and therefore have some data associated with them
>
> For 3, it looks like B::Deparse does't handle the data at a
David Landgren writes:
> Michael Schwern wrote at the beginning of this thread:
>
> > What it *shouldn't* do is what Test.pm does, namely execute the
> > code ref and compare the values returned. It would just compare
> > the refernces.
>
> Why should it not do that? Is this because of subs
You have 3 situations
1 the refs came from \&somefunc
2 the refs come from evaling strings of code
3 the refs are closures and therefore have some data associated with them
For 3, it looks like B::Deparse does't handle the data at all so even
if the deparsed subs are identical they may behave tot
On Sun, Jun 26, 2005 at 12:06:47PM +0200, David Landgren wrote:
> > What it *shouldn't* do is what Test.pm does, namely execute the
> > code ref and compare the values returned. It would just compare
> > the refernces.
>
> Why should it not do that? Is this because of subs with side effects?
> I
Hi,
I'm wondering, if it's possible with Perl 6 or not?
class MyClass {
method mymethod($par) {
say "mymethod called!";
}
}
class ExClass is MyClass {
mymethod(12);
}
#> pugs myprog
mymethod called!
I would like to use mymethod to add ExClass some m
Tels wrote :
-BEGIN PGP SIGNED MESSAGE-
Moin,
On Sunday 26 June 2005 07:18, Collin Winter wrote:
[...]
After tinkering with B::Deparse for a bit, I think this particular
"oddity" may just be a result of poorly-written docs (or, more
probably, poorly-read on my part). The module seems
On Sun, Jun 26, 2005 at 01:18:42AM -0400, Collin Winter wrote:
> With this matter sorted, I've started on the code
> and requisite tests to make the new stuff work.
Ok, let me know when you have something.
--
Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern
Reality is t
On Sun, Jun 26, 2005 at 10:25:51AM +0200, Tels wrote:
> > After tinkering with B::Deparse for a bit, I think this particular
> > "oddity" may just be a result of poorly-written docs (or, more
> > probably, poorly-read on my part). The module seems to do the right
> > thing in all cases I could come
Joshua Juran wrote:
scalar
number (possibly complex)
real
rational
integer
Integer
BigInt
Ratio
Float
Complex
Quaternion
String
...
Trying to fit every problem int
To me it is a trivial case that you want to provide a fake attribute
which for all intents and purposes behaves exactly like there was a real
attribute there, backing against another attribute.
A Date object is a classic example of this; you want to provide 0-based
and 1-based attributes, which y
-BEGIN PGP SIGNED MESSAGE-
Moin,
On Sunday 26 June 2005 07:18, Collin Winter wrote:
> > > My initial quick-glance at B::Deparse's documentation mentions
> > > something about perl optimising certain constants away, which could
> > > well throw a spanner into the works. Storable uses B::De
Craig (via RT) wrote:
Downloaded revision 8443 of Parrot to Windows XP Pro using SVN. When using
'nmake' 7.10.3077, some of the test are failing. According to the
gettingstarted.pod, none of the tests should fail.
README.win32 is more specific - dynclasses are currently broken.
Thanks, Crai
Roger Browne wrote:
Hi,
What is parrot's default method resolution order? Is it like the old
Python MRO (left-to-right, depth-first)? Is it like the new Python MRO
[1] (left-to-right, depth-first, but discard all but the last occurrence
of duplicates)?
The latter. See also the test "constructo
27 matches
Mail list logo