Re: Private contracts?

2002-10-12 Thread Larry Wall
On Thu, 3 Oct 2002, Trey Harris wrote: : In a message dated Thu, 3 Oct 2002, Allison Randal writes: : > So far, classes are uppercase and properties are lowercase, but that's : > convention, not law. : : Do runtime (value) properties and compile-time (variable) properties share : the same namespa

Re: Private contracts?

2002-10-12 Thread Graham Barr
On Fri, Oct 11, 2002 at 05:50:55PM -0700, Larry Wall wrote: > On Sat, 5 Oct 2002, Allison Randal wrote: > : use Acme::N-1_0; # or whatever the format of the name is > > I don't see why it couldn't just be: > > use Acme::1.0; I agree thats better. But why not separate the version more by

Re: Private contracts?

2002-10-12 Thread Iain Spoon Truskett
* Larry Wall ([EMAIL PROTECTED]) [12 Oct 2002 10:51]: [...] > use Acme::1.0; > After all, we don't have package names starting with numbers right now... Well, there's than Pod::Simple::31337, which confused search.cpan.org for a bit. But none which _start_ with a number, no. cheers, -- I

Re: [PATCH] Removing two-arg ne

2002-10-12 Thread Leopold Toetsch
Nicholas Clark wrote: > On Fri, Oct 11, 2002 at 05:01:49PM -0400, Dan Sugalski wrote: > >>At 9:02 PM +0100 10/11/02, Nicholas Clark wrote: >> > >>>I would like to kill all generated variants of all the 3 argument opcodes >>>where both input arguments are constants. They truly are superfluous.

signal 11 when run on x86, JIT enabled

2002-10-12 Thread Joe Wilson
Perhaps this is a known issue... Most parrot programs seem to crash on x86 when the latest CVS parrot is compiled with "-O2" or "-g -O2" and when JIT is enabled. The programs appear to run to completion and only crash prior to exitting. Repeatable on both Cygwin and Linux x86. When JIT is not us

Win32 src test failure

2002-10-12 Thread Erik Lechak
Hello all, While writing the "getting started" guide, I was playing with the tests. (I am on Windows XP). I noticed that the src tests fail or are not even run for Win32. I tinkered with it for a while and got some of the tests to pass. It turns out there was a linking problem. The libpa

Re: [perl #17864] [PATCH] Warnings fixes

2002-10-12 Thread Juergen Boemmels
Simon Glover (via RT) <[EMAIL PROTECTED]> writes: > Brent's sprintf patch introduced a couple of new warnings here: > > exceptions.c: In function `do_panic': > exceptions.c:69: warning: signed and unsigned type in conditional > expression > trace.c:22: warning: no previous prototype for

[perl #17876] [PTACH] Parrot_snprintf writes 1 char too much

2002-10-12 Thread via RT
# New Ticket Created by Leopold Toetsch # Please include the string: [perl #17876] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17876 > I didn't look, if this is really intended, but I wouldn't like to behave Parrot_snp

Re: Private contracts?

2002-10-12 Thread Larry Wall
On Sat, 5 Oct 2002, Allison Randal wrote: : use Acme::N-1_0; # or whatever the format of the name is I don't see why it couldn't just be: use Acme::1.0; After all, we don't have package names starting with numbers right now... Larry

Re: Interfaces

2002-10-12 Thread Larry Wall
On Fri, 11 Oct 2002, Michael Lazzaro wrote: : On Friday, October 11, 2002, at 04:11 PM, Larry Wall wrote: : > has Nose $.snout; : > has Ear @.ears is cut("long"); : > has Leg @.legs; : > has Tail $.tail is cut("short"); : > : > method Wag () {...} : > } : : What's the r

RE: Private contracts?

2002-10-12 Thread Larry Wall
On Fri, 4 Oct 2002, Garrett Goebel wrote: : That wasn't the way I remembered it from Apoc 4... The following example is : not in A4, but its what I inferred from it... : : Class Foo { : method eat($food) is abstract { : PRE { ... } : POST { ... } : } : } A4 was proposing those for a

Re: Private contracts?

2002-10-12 Thread Larry Wall
On Fri, 4 Oct 2002, Peter Haworth wrote: : This is the one nice thing about the Pascal-like syntax of Eiffel. It allows : this situation to be unambiguous and sensibly ordered (as well as giving each : condition labels, so that violations can be better reported): : : foo(this: ThisType, that: T

Re: [perl #17876] [PTACH] Parrot_snprintf writes 1 char too much

2002-10-12 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Leopold Toetsch (via RT) <[EMAIL PROTECTED]> wrote: > I didn't look, if this is really intended, but I wouldn't like to behave > Parrot_snprintf different then snprintf(3). > > It would also be nice, if we could have a return value, consistent with > glib

Re: [PATCH] Removing two-arg ne

2002-10-12 Thread Nicholas Clark
On Fri, Oct 11, 2002 at 05:01:49PM -0400, Dan Sugalski wrote: > At 9:02 PM +0100 10/11/02, Nicholas Clark wrote: > >I would like to kill all generated variants of all the 3 argument opcodes > >where both input arguments are constants. They truly are superfluous. > > Where both operands are ints

RE: Win32 src test failure

2002-10-12 Thread Brent Dax
Erik Lechak: # Problem seems to be in the # parrot/config/gen/libparrot_def/libparrot_def.in file. What # mechanism # is supposed to keep this up to date? I'm not directly involved in maintenance of this file, but at a glance it looks like it's only supposed to include functions in the extern

Re: Interfaces

2002-10-12 Thread Nicholas Clark
On Tue, Oct 08, 2002 at 05:00:20PM -0400, Michael G Schwern wrote: > Unfortunately, Java doesn't ship with JUnit nor do Java libraries usually > ship with tests nor does a simple convention to run them nor an expectation > that the user will run the tests before installing. Score one for Perl. :)

Re: Private contracts?

2002-10-12 Thread Larry Wall
On Thu, 3 Oct 2002, John Williams wrote: : On Thu, 3 Oct 2002, Trey Harris wrote: : : > Incidentally, has there been any headway made on how you DO access : > multiple classes with the same name, since Larry has (indirectly) promised : > us that? I.e., I import two classes "LinkedList" and "BTre

Re: Private contracts?

2002-10-12 Thread Larry Wall
On Thu, 3 Oct 2002, Michael G Schwern wrote: : On Thu, Oct 03, 2002 at 05:23:08PM -0500, Jonathan Scott Duff wrote: : > I don't know, but I think it's supposed to be like this: : > : > # part of the signature : > method turn($dir,$ang) is pre { $ang <= 20 } { : > ... : > } : > :

Re: Private contracts?

2002-10-12 Thread Larry Wall
On 4 Oct 2002, Aaron Sherman wrote: : There are a very large number of good things that I think we should put : into properties for meta-programming purposes (e.g. constraints, : assertions, optimization hints, documentation, etc). : : For example: : : sub f(int $a is constrained($a>=1,"mu

Re: perl6 operator precedence table

2002-10-12 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > I'm not sure either, and that's why I'm thinking about it. :-) Phew. -- Only two things are infinite: the Universe and human stupidity, and I'm not sure about the former - Albert Einstein

Re: perl6 operator precedence table

2002-10-12 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: > I was thinking more along the lines of: > > $x &&& $y > $x ||| $y This isn't Perl; this is merely some language that looks a bit like it. I can understand the attraction for confusing anyone who comes from a standard Unix language background, but

popping an empty intlist

2002-10-12 Thread Jerome Quelin
Hi there, I just discovered that: a) my befunge interpreter is broken (would you stop beaking it please? :o)) b) push and pop operations are now supported by lists c) there's a pmc for handling list of integers: intlist I'll get back to point a) later when I'll have investigated it. Point c)

Re: the getting started guide

2002-10-12 Thread Bruce Gray
On Thu, 10 Oct 2002 00:37:22 -0400, [EMAIL PROTECTED] (Erik Lechak) wrote: --snip-- >Where can I get a reliable port of cvs for Windows? >My old executable (v1.11)works fine. Here are some pointers for you, and for possible inclusion in your "getting started" document. CVSHome.org is re-organi

Re: Private contracts?

2002-10-12 Thread Luke Palmer
> sub f(int $a is constrained($a>=1,"must be positive), > documented("an integer")) { > ... > } > I now realize I'm a little fuzzy on the yada-yada-yada operator. What exactly is it... or what does it do? Is it a statement, an expression? Could

Re: perl6 operator precedence table

2002-10-12 Thread Dan Sugalski
At 3:55 PM -0700 10/11/02, Larry Wall wrote: >On 11 Oct 2002, Simon Cozens wrote: >: [EMAIL PROTECTED] (Larry Wall) writes: >: > I was thinking more along the lines of: >: > >: > $x &&& $y >: > $x ||| $y >: >: This isn't Perl; this is merely some language that looks a bit like >: it. I ca

Re: perl6 operator precedence table

2002-10-12 Thread Larry Wall
On 11 Oct 2002, Simon Cozens wrote: : [EMAIL PROTECTED] (Larry Wall) writes: : > I was thinking more along the lines of: : > : > $x &&& $y : > $x ||| $y : : This isn't Perl; this is merely some language that looks a bit like : it. I can understand the attraction for confusing anyone who

Re: Private contracts?

2002-10-12 Thread Trey Harris
In a message dated Fri, 11 Oct 2002, Larry Wall writes: > A public inner class: > > our class Node {...} > > That last one actually declares a subclass of the current class, just as > > our $foo; > > puts $foo into the current package. When you say "subclass", do you mean "below the curre

Re: the getting started guide

2002-10-12 Thread Robert Spier
>4)How do I get pod2html to give me html that looks like the docs on >http://www.parrotcode.org/docs/? Ha! :) We're using a slightly tweaked (by Graham Barr for search.cpan.org) version of POD::POM and a stylesheet. You can find the stylesheet here: http://dev.perl.org/perl-styles.css Onc

Re: perl6 operator precedence table

2002-10-12 Thread Dan Kogai
On Friday, Oct 11, 2002, at 23:21 Asia/Tokyo, Aaron Crane wrote: > Vaguely heretical, I know, but I'd be inclined to do something like > this: > > Perl 5 Proposed Perl 6 > $x && $y $x & $y > $x || $y $x | $y > > $x & $ybitand($x, $y) > $x | $ybitor($x, $y) Objection, yo