Re: [perl #34912] Badly balanced at classes/pmc2c2.pl

2005-04-12 Thread Brent 'Dax' Royal-Gordon
Leopold Toetsch [EMAIL PROTECTED] wrote: BTW: a nice to have: include SVN revision of local copy in bug report. Remember how I set things up so that Configure would add a timestamp to config.h and Config.pm? I only did that because CVS didn't have a repository-wide revision number like

Slicing conflict

2005-04-12 Thread Luke Palmer
In Perl 5: my @a = (1,2,3); my @b = @a[0..3]; print scalar(@b); # 4 But in Perl 6: my @a = (1,2,3,4); my @b = @a[1...]; # elements from 1 onward say [EMAIL PROTECTED]; # should probably be 3, but with Perl 5 semantics is Inf We have to break one of these. I think

Re: Slicing conflict

2005-04-12 Thread Autrijus Tang
On Tue, Apr 12, 2005 at 12:30:42AM -0600, Luke Palmer wrote: But in Perl 6: my @a = (1,2,3,4); my @b = @a[1...]; # elements from 1 onward say [EMAIL PROTECTED]; # should probably be 3, but with Perl 5 semantics is Inf In Pugs (r1847), after the IType refactoring, I have

Re: Slicing conflict

2005-04-12 Thread Brent 'Dax' Royal-Gordon
Luke Palmer [EMAIL PROTECTED] wrote: In Perl 5: my @a = (1,2,3); my @b = @a[0..3]; print scalar(@b); # 4 But in Perl 6: my @a = (1,2,3,4); my @b = @a[1...]; # elements from 1 onward say [EMAIL PROTECTED]; # should probably be 3, but with Perl 5

Re: imcc/ directory

2005-04-12 Thread Bernhard Schmalhofer
MrJoltCola wrote: At 06:57 PM 4/11/2005, Matt Diephouse wrote: Now that IMCC is a core part of Parrot, I'd like to see the imcc/ directory go away. Technically IMCC should be separate I think mild separation that still exists is a good thing. IMCC does not actually execute anything, it is a

Re: Whither use English?

2005-04-12 Thread Michele Dondi
On Mon, 11 Apr 2005, Juerd wrote: Seriously, is there some reason that we would not provide a Language::Russian and Language::Nihongo? Given Perl 6, it would even [snip] Because providing it leads to its use, and when it gets used, knowing English is no longer enough. I have some code that uses

Takers wanted - a perl job

2005-04-12 Thread Leopold Toetsch
t/src/manifest.t tests 3 and 4 used to compare MANIFEST file entries against CVS/Entries. The latter is now .svn/entries with an xmlish syntax. The job is now to replace t/src/manifest.t:scan_cvs so that it extracts Cname items from .svn/entries and descends into Ckind=dir subdirectories. And

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-12 Thread Leopold Toetsch
Jerry Gay [EMAIL PROTECTED] wrote: the attached patch gets the SDL library and examples running on win32. Are there more Win32 libs that have the same naming conventions: unixish: win32: libSDL SDL The question is, if the dynext loader should try to strip

Re: [perl #34912] Badly balanced at classes/pmc2c2.pl

2005-04-12 Thread Leopold Toetsch
Jrieks @ Wmit00 . It . Math . Uni-Wuppertal . De [EMAIL PROTECTED] wrote: wmit01 ~ perl -v This is perl, v5.6.0 built for i586-linux As it seems to be a perl issue, please check the relevant part of the PMC compiler. IIRC there was a patch regarding Cextract_balanced not too long ago. leo

Re: imcc/ directory

2005-04-12 Thread Leopold Toetsch
Matt Diephouse [EMAIL PROTECTED] wrote: Now that IMCC is a core part of Parrot, I'd like to see the imcc/ directory go away. I'd be willing to spend some time trying to prepare some patches (it'd be a good way to become more familiar with the source), but I have a few questions first: (1)

Re: Takers wanted - a perl job

2005-04-12 Thread Michael G Schwern
On Tue, Apr 12, 2005 at 11:08:30AM +0200, Leopold Toetsch wrote: t/src/manifest.t tests 3 and 4 used to compare MANIFEST file entries against CVS/Entries. The latter is now .svn/entries with an xmlish syntax. The job is now to replace t/src/manifest.t:scan_cvs so that it extracts Cname items

Re: Takers wanted - a perl job

2005-04-12 Thread Nicholas Clark
On Tue, Apr 12, 2005 at 02:50:57AM -0700, Michael G Schwern wrote: No need to parse the XML files, svn list -R lists everything in the repo. And I suppose I just volunteered myself for the job. $ svn list -R svn: '.' is not a working copy Doesn't work when svk is used to check out the copy.

S27 Draft

2005-04-12 Thread Brian Ingerson
I've taken a shot at starting a Synopsis 27 as well: http://svn.openfoundry.org/pugs/docs/S27draft.pod Cheers, Brian

Re: Takers wanted - a perl job

2005-04-12 Thread Ron Blaschke
Leopold Toetsch wrote: t/src/manifest.t tests 3 and 4 used to compare MANIFEST file entries against CVS/Entries. The latter is now .svn/entries with an xmlish syntax. The job is now to replace t/src/manifest.t:scan_cvs so that it extracts Cname items from .svn/entries and descends into

Re: Blocks, continuations and eval()

2005-04-12 Thread Piers Cawley
wolverian [EMAIL PROTECTED] writes: On Fri, Apr 08, 2005 at 12:18:45PM -0400, MrJoltCola wrote: I cannot say how much Perl6 will expose to the high level language. That is what I'm wondering about. I'm sorry I was so unclear. Can you tell me what your idea of a scope is? I'm thinking a

Re: Question about list context for String.chars

2005-04-12 Thread Larry Wall
On Mon, Apr 11, 2005 at 03:53:32PM -0400, Mark Reed wrote: (B: I think that, in general, at the level of Perl code, 1 $B!H(Bcharacter$B!I(B should be (B: one code point, and any higher-level support for combining and splitting (B: should be outside the core, in Unicode::Whatever. (B (BI

Re: Blocks, continuations and eval()

2005-04-12 Thread Larry Wall
On Tue, Apr 12, 2005 at 11:36:02AM +0100, Piers Cawley wrote: : wolverian [EMAIL PROTECTED] writes: : : On Fri, Apr 08, 2005 at 12:18:45PM -0400, MrJoltCola wrote: : I cannot say how much Perl6 will expose to the high level language. : : That is what I'm wondering about. I'm sorry I was so

Re: Slicing conflict

2005-04-12 Thread Larry Wall
On Tue, Apr 12, 2005 at 12:08:43AM -0700, Brent 'Dax' Royal-Gordon wrote: : I was thinking about this today, actually, because my CS textbook was : talking about multidimensional arrays. If we make an infinite index : mean slice until you can slice no more, then we can possibly have a : Cterm:*

Re: Question about list context for String.chars

2005-04-12 Thread Larry Wall
On Mon, Apr 11, 2005 at 01:08:04PM -0700, gcomnz wrote: : I read followed by 0 or more combining characters to mean that it is : smart enough to combine the vowels in Arabic and other syllabic : alphabets that use special conjuncts. However I'm also not exactly : sure if that's even reasonably

Re: Phalanx kwiki

2005-04-12 Thread James E Keenan
Walter Goulet wrote: Looks like the phalanx kwiki as well as the phalanx subversion repository is down. Any ETA on when it will be back up? I can get the repository but not the kwiki. But, IIRC, the kwiki is hosted by Ingy and is physically independent of the repository, which I believe is

Re: Whither use English?

2005-04-12 Thread David Cantrell
On Mon, Apr 11, 2005 at 03:42:25PM -0400, Aaron Sherman wrote: I don't think you can say (as Larry has) that you want to be able to fully re-define the language from within itself and still impose the constraint that it can't confuse people who don't know anything about my module. You might

Re: Whither use English?

2005-04-12 Thread Juerd
Thomas Yandell skribis 2005-04-12 13:13 (+0100): According to Wikipedia there are around 400 million native English speakers and 600 million people who have English as a second language. Should the remaining ~5.5 billion humans be exluded from writing perl code just so that we English

Re: Whither use English?

2005-04-12 Thread Nicholas Clark
On Tue, Apr 12, 2005 at 02:38:01PM +0200, Juerd wrote: (Still, having them around does help many people, and that's why I think perldocs should perhaps come in several languages (as a different project, so translation delays don't delay Perl releases)). Should ? Who is going to pay for all

Re: Whither use English?

2005-04-12 Thread Juerd
Nicholas Clark skribis 2005-04-12 13:58 (+0100): (Still, having them around does help many people, and that's why I think perldocs should perhaps come in several languages (as a different project, so translation delays don't delay Perl releases)). Should ? Yes, should. That's ideology,

Re: Whither use English?

2005-04-12 Thread Andrew Rodland
On Tuesday 12 April 2005 07:42 am, David Cantrell wrote: On Mon, Apr 11, 2005 at 03:42:25PM -0400, Aaron Sherman wrote: I'm not even sure I like the *possibility* of using non-ascii letters in identifiers, even. I think we already have Latin-1 in identifiers... more's the pity.

Re: Whither use English?

2005-04-12 Thread David Cantrell
On Tue, Apr 12, 2005 at 02:38:01PM +0200, Juerd wrote: Thomas Yandell skribis 2005-04-12 13:13 (+0100): According to Wikipedia there are around 400 million native English speakers and 600 million people who have English as a second language. Should the remaining ~5.5 billion humans be

Re: Whither use English?

2005-04-12 Thread Thomas Yandell
I'm not even sure I like the *possibility* of using non-ascii letters in identifiers, even. I think we already have Latin-1 in identifiers... more's the pity. According to Wikipedia there are around 400 million native English speakers and 600 million people who have English as a

Re: Whither use English?

2005-04-12 Thread Thomas Yandell
But your numbers are utterly useless, as they are counts of humans, not programmers. I think that the number of programmers who don't understand English is very small. They know English because historically, the programmer's world has been English. My point was that English speakers are in a

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-12 Thread jerry gay
On 12 Apr 2005 09:44:08 -, Leopold Toetsch via RT [EMAIL PROTECTED] wrote: Jerry Gay [EMAIL PROTECTED] wrote: the attached patch gets the SDL library and examples running on win32. Are there more Win32 libs that have the same naming conventions: unixish: win32: libSDL SDL

Re: Whither use English?

2005-04-12 Thread Nicholas Clark
On Tue, Apr 12, 2005 at 03:09:10PM +0200, Juerd wrote: Nicholas Clark skribis 2005-04-12 13:58 (+0100): (Still, having them around does help many people, and that's why I think perldocs should perhaps come in several languages (as a different project, so translation delays don't delay

Re: SVN revision (was: [perl #xxxxxx] Badly balanced at classes/pmc2c2.pl)

2005-04-12 Thread Jens Rieks
On Monday 11 April 2005 17:54, Leopold Toetsch wrote: BTW: a nice to have: include SVN revision of local copy in bug report. I'll implement it. jens

Re: Whither use English?

2005-04-12 Thread Juerd
Nicholas Clark skribis 2005-04-12 14:34 (+0100): Yes, should. That's ideology, though. I read should as a danger word. It's often person A describing a desirable feature and intimating that unspecified other people B-Z ought to be implementing it. Please note that I try to not think about

Re: Whither use English?

2005-04-12 Thread Juerd
Juerd skribis 2005-04-12 15:46 (+0200): Please note that I try to not think about who's going to implement it at all. That makes being creative and coming up with good ideas much, much easier. And to be honest, it makes coming up with bad ideas much easier than that even :) Juerd --

Re: [PATCH] Dynamic Perl, 2 [t/]

2005-04-12 Thread Leopold Toetsch
William Coleda [EMAIL PROTECTED] wrote: Or, rather, find the attached patch here: https://rt.perl.org/rt3/Ticket/Attachment/110536/75860/dynamic_perl2.patch Thanks, applied. leo

Re: Whither use English?

2005-04-12 Thread Nicholas Clark
On Tue, Apr 12, 2005 at 03:46:03PM +0200, Juerd wrote: Yes, if it is done, people are indeed involved, but if we all agree that something must happen, that's not terribly relevant. And before we can That's another dangerous word. If stuff is only happening because people

Re: Whither use English?

2005-04-12 Thread Nicholas Clark
On Tue, Apr 12, 2005 at 03:48:02PM +0200, Juerd wrote: Juerd skribis 2005-04-12 15:46 (+0200): Please note that I try to not think about who's going to implement it at all. That makes being creative and coming up with good ideas much, much easier. And to be honest, it makes coming up

Re: Whither use English?

2005-04-12 Thread Juerd
Nicholas Clark skribis 2005-04-12 14:52 (+0100): Yes, if it is done, people are indeed involved, but if we all agree that something must happen, that's not terribly relevant. And before we can That's another dangerous word. Not in combination with if we all agree :) I'd

Re: Whither use English?

2005-04-12 Thread Aaron Sherman
On Tue, 2005-04-12 at 07:42, David Cantrell wrote: You might argue that Language::Dutch should never ship with the core... that's a valid opinion, but SOMEONE is going to write it. It'd be a kind of strange form of censorship for CPAN not to accept it. After all, there's more than one way

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-12 Thread Leopold Toetsch
jerry gay wrote: On 12 Apr 2005 09:44:08 -, Leopold Toetsch via RT [EMAIL PROTECTED] wrote: The question is, if the dynext loader should try to strip ^lib off the library name. the convention on windows is not to include the lib prefix, however there are exceptions. Ok, let's try it.

subscripts are.... objects?

2005-04-12 Thread Yuval Kogman
We blitzed a discussion on #perl 3 minutes ago, reaching the conclusion that negated subscripts are cool. So i was thinking: subscripts are objects. They are sets, really. You can perform set operations on them: [!-2] is the subscript for everything but the second to last element.

Win32 with ICU files build problem

2005-04-12 Thread Solinski, Mark
Following the instructions in README.Win32 (which has been successful for me in the past), no longer works successfully. First, I cannot run Configure.pl successfully; it complains about --icudatadir not being defined (again not one of the --icu* options mentioned in README.Win32 AND not

perlscalar morph code

2005-04-12 Thread Nicholas Clark
I'm trying to understand how morph works. perlscalar's morph looks like this: void morph (INTVAL type) { if (SELF-vtable-base_type == type) return; if (SELF-vtable-base_type == enum_class_PerlString) { PObj_custom_mark_CLEAR(SELF);

Re: subscripts are.... objects?

2005-04-12 Thread Thomas Sandlaß
Yuval Kogman wrote: You can perform set operations on them: [!-2] Hmm, that would produce a boolean index. is the subscript for everything but the second to last element. By using a context enforcer (subscript [] ?, maybe since lists are lazyy they can just be subscripts when used that way?) you

Tests running Tests

2005-04-12 Thread Sam Tregar
Hello all. I've got a test I want to write, but I don't know to write it (easily). I've got a test script, call it foo.t which uses Test::More and runs under Test::Harness. Now I want to make a new test script tweek-then-foo.t which tweeks the system and then ensures that foo.t still passes.

Re: Tests running Tests

2005-04-12 Thread Paul Johnson
On Tue, Apr 12, 2005 at 01:20:18PM -0400, Sam Tregar wrote: Hello all. I've got a test I want to write, but I don't know to write it (easily). I've got a test script, call it foo.t which uses Test::More and runs under Test::Harness. Now I want to make a new test script tweek-then-foo.t

Re: Blocks, continuations and eval()

2005-04-12 Thread Piers Cawley
Larry Wall [EMAIL PROTECTED] writes: On Tue, Apr 12, 2005 at 11:36:02AM +0100, Piers Cawley wrote: : wolverian [EMAIL PROTECTED] writes: : : On Fri, Apr 08, 2005 at 12:18:45PM -0400, MrJoltCola wrote: : I cannot say how much Perl6 will expose to the high level language. : : That is

Testing for NULL return values in test scripts

2005-04-12 Thread Walter Goulet
Hi, I was wondering if there is a way to use the ok() function in Test.pm to check for a null return value. It looks like the 3 arg form of ok() I'm using only tests the first 2 args to see if they're equal. I'm considering this approach: $val = some_func(); # returns NULL on failure if($val

Re: Tests running Tests

2005-04-12 Thread Sam Tregar
On Tue, 12 Apr 2005, Paul Johnson wrote: I would do it in the same way as if this had nothing to do with tests. That is, abstract away the common code into a module, which can also live under t/ That would be a lot of work in this case. I found an easier solution. In tweek-then-foo.t: {

Re: Win32 with ICU files build problem

2005-04-12 Thread Christian Sporer
Hi Mark, I was able to compile parrot yesterday night. I compiled icu and copied the contents of the directory icu/include (two directories) manually to parrot/src. After that the compiler didn't complain anymore and I got a working parrot.exe. The --icudatadir I pointed to the out directory in

Re: Testing for NULL return values in test scripts

2005-04-12 Thread Steve Peters
On Tue, Apr 12, 2005 at 12:49:30PM -0500, Walter Goulet wrote: Hi, I was wondering if there is a way to use the ok() function in Test.pm to check for a null return value. It looks like the 3 arg form of ok() I'm using only tests the first 2 args to see if they're equal. I'm considering

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-12 Thread jerry gay
On 12 Apr 2005 15:14:58 -, Leopold Toetsch via RT [EMAIL PROTECTED] wrote: jerry gay wrote: On 12 Apr 2005 09:44:08 -, Leopold Toetsch via RT [EMAIL PROTECTED] wrote: The question is, if the dynext loader should try to strip ^lib off the library name. the convention on

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-12 Thread chromatic
On Tue, 2005-04-12 at 10:59 -0700, jerry gay wrote: works! the win32-specific stuff can be ripped out of runtime/library/pcre.imc SDL.imc. or i'll submit a patch if you'd rather. There shouldn't be any Win32-specific stuff in SDL.imc now. (I don't see any.) There's Debian-specific

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-12 Thread jerry gay
i'm happy. close the ticket. On 12 Apr 2005 18:10:49 -, chromatic via RT [EMAIL PROTECTED] wrote: On Tue, 2005-04-12 at 10:59 -0700, jerry gay wrote: works! the win32-specific stuff can be ripped out of runtime/library/pcre.imc SDL.imc. or i'll submit a patch if you'd rather.

[perl #34932] [PATCH] Add -I/path/to/icu/headers flag if needed

2005-04-12 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #34932] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34932 If the user has ICU installed in a location not normally searched by the

[perl #34933] [PATCH] Handle trailing space in $(LD_OUT)

2005-04-12 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #34933] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34933 Removing ICU from the build uncovered an odd build bug concerning the space

Re: [perl #34704] [PATCH] get SDL running on win32

2005-04-12 Thread Leopold Toetsch
chromatic wrote: There's Debian-specific stuff, but that's just Debian being charmingly itself. That should go away too. The canonical fix is to create the missing symlinks and probably submit patches to debian. leo

Re: [perl #34932] [PATCH] Add -I/path/to/icu/headers flag if needed

2005-04-12 Thread Jens Rieks
On Tuesday 12 April 2005 19:10, Andy Dougherty wrote: # New Ticket Created by Andy Dougherty # Please include the string: [perl #34932] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34932 If the user has ICU

Re: Testing for NULL return values in test scripts

2005-04-12 Thread Walter Goulet
I can't use Test::Simple, I have to use Test.pm for this module for backwards compatibility reasons. I'm trying to replace this function call with an ok() call: $ctx = Net::SSLeay::SSL_CTX_new() or die (Unable to create SSL context); Hard to tell what $ctx is if SSL_CTX_new() fails; I know it

Re: Win32 with ICU files build problem

2005-04-12 Thread Matt Diephouse
Solinski, Mark [EMAIL PROTECTED] wrote: Following the instructions in README.Win32 (which has been successful for me in the past), no longer works successfully. First, I cannot run Configure.pl successfully; it complains about --icudatadir not being defined (again not one of the --icu*

Re: Slicing conflict

2005-04-12 Thread Brent 'Dax' Royal-Gordon
Larry Wall [EMAIL PROTECTED] wrote: On Tue, Apr 12, 2005 at 12:08:43AM -0700, Brent 'Dax' Royal-Gordon wrote: : @foo[1,3; *; 7] : : Which I rather like. Me too. Unless my memory is failing me, I believe that's what S09 already specifies. It does include a Cterm:* (d'oh, should've

Win32 with ICU files build problem

2005-04-12 Thread Solinski, Mark
I'm sorry if this is a repeat... I posted this accidentally to perl6-language... Following the instructions in README.Win32 (which has been successful for me in the past), no longer works successfully. First, I cannot run Configure.pl successfully; it complains about --icudatadir not being

Re: Win32 with ICU files build problem

2005-04-12 Thread Jens Rieks
On Tuesday 12 April 2005 21:06, Solinski, Mark wrote: Following the instructions in README.Win32 (which has been successful for me in the past), no longer works successfully. First, I cannot run Configure.pl successfully; it complains about --icudatadir not being defined (again not one of

Re: Win32 with ICU files build problem

2005-04-12 Thread wi
I succeeded using the mingw32 setup. I counldn't get the Visual Studio.Net or free VC++ compilers to work, and ran out of energy. On Apr 12, 2005 12:06 PM, Solinski, Mark [EMAIL PROTECTED] wrote: I'm sorry if this is a repeat... I posted this accidentally to perl6-language... Following the

Summary for the week ending 2005-04-12

2005-04-12 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 2005-04-12 Whoa! Deja vu! Where'd Matt go? Don't worry, Matt's still writing summaries. As you may have noticed, Matt's been writing summaries every two weeks. And now so am I. Because we love you, we've decided to arrange things so I write

Re: Takers wanted - a perl job

2005-04-12 Thread Michael G Schwern
On Tue, Apr 12, 2005 at 10:54:14AM +0100, Nicholas Clark wrote: On Tue, Apr 12, 2005 at 02:50:57AM -0700, Michael G Schwern wrote: No need to parse the XML files, svn list -R lists everything in the repo. And I suppose I just volunteered myself for the job. $ svn list -R svn: '.' is

Re: Win32 with ICU files build problem

2005-04-12 Thread jerry gay
On Apr 12, 2005 12:06 PM, Solinski, Mark [EMAIL PROTECTED] wrote: Has anyone successfully built Parrot on Win32 (MSVC 13.10.3077) recently? parrot builds fine on win32--vc-7.1-perl-5.8.6 for me, without icu. i have been building this way for some time now. configure.pl --without-icu

Re: perlscalar morph code

2005-04-12 Thread Simon Glover
On Tue, 12 Apr 2005, Nicholas Clark wrote: I think that there are 2 bugs here 1: Morphing from enum_class_PerlString to enum_class_BigInt or enum_class_Complex looks broken. The return in the second if clause will quit the function and the DYNSELF.init() will never get called. Can anyone easily

Re: Summary for the week ending 2005-04-12

2005-04-12 Thread Simon Glover
On Tue, 12 Apr 2005, The Perl 6 Summarizer wrote: Dynamic Perl, Part 1 William Coleda announced that he was starting work on removing the core's dependence on Perl* PMCs in favour of using language agnostic PMCs internally and loading the Perl ones dynamically as required. Everything

Pugs 6.2.0 released.

2005-04-12 Thread Autrijus Tang
I am delighted to report that the first major milestone of Pugs, version 6.2.0, has been released to CPAN: http://wagner.elixus.org/~autrijus/dist/Perl6-Pugs-6.2.0.tar.gz SIZE (Perl6-Pugs-6.2.0.tar.gz) = 642482 MD5 (Perl6-Pugs-6.2.0.tar.gz) = 8d5438d49db872ffe2394fd4995d335b It

Re: Pugs 6.2.0 released.

2005-04-12 Thread Matt Fowles
Autrijus~ On Apr 12, 2005 3:50 PM, Autrijus Tang [EMAIL PROTECTED] wrote: * `xor` and `^^` now short-circuits How does this work? I thought xor /had/ to evaluate both sides. Matt -- Computer Science is merely the post-Turing Decline of Formal Systems Theory. -???

Re: Testing for NULL return values in test scripts

2005-04-12 Thread Michael G Schwern
On Tue, Apr 12, 2005 at 01:39:59PM -0500, Walter Goulet wrote: I can't use Test::Simple, I have to use Test.pm for this module for backwards compatibility reasons. Try Test::Legacy, it gives you an upgrade path away from Test.pm. http://search.cpan.org/dist/Test-Legacy/ It almost perfectly

Re: Testing for NULL return values in test scripts

2005-04-12 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On Tuesday 12 April 2005 22:15, Michael G Schwern wrote: On Tue, Apr 12, 2005 at 01:39:59PM -0500, Walter Goulet wrote: I can't use Test::Simple, I have to use Test.pm for this module for backwards compatibility reasons. Try Test::Legacy, it gives

Re: ANN: JavaScript TestSimple 0.02

2005-04-12 Thread David Wheeler
On Apr 12, 2005, at 2:07 PM, David Wheeler wrote: I'm pleased to announce the second alpha release of TestSimple, the port of Test::Builder, Test::Simple, and Test::More to JavaScript. And you can download it from here: http://www.justatheory.com/downloads/TestSimple-0.02.tar.gz Cheers, David

Re: Testing for NULL return values in test scripts

2005-04-12 Thread Walter Goulet
I think the suggestion to use Test::Legacy was based on the statement 'backwards compatibility reasons' require me to use Test.pm. I should have been clearer in my explanation; the module author is not permitting me to use any additional modules that aren't included in perl 5.6.0 to test his

Re: Testing for NULL return values in test scripts

2005-04-12 Thread Michael G Schwern
On Tue, Apr 12, 2005 at 10:57:02PM +0200, Tels wrote: Try Test::Legacy, it gives you an upgrade path away from Test.pm. http://search.cpan.org/dist/Test-Legacy/ It almost perfectly emulates the Test.pm interface and it works in conjunction with other test modules. If you're worried

Re: Testing for NULL return values in test scripts

2005-04-12 Thread Michael G Schwern
On Tue, Apr 12, 2005 at 04:15:01PM -0500, Walter Goulet wrote: I think the suggestion to use Test::Legacy was based on the statement 'backwards compatibility reasons' require me to use Test.pm. I should have been clearer in my explanation; the module author is not permitting me to use any

Testing Ties

2005-04-12 Thread James E Keenan
How do you test that a variable has been tied to a class? I looked through Test::More; the term 'tie' is conspicuous by its absence. I also searched the archives of this list and couldn't locate anything. I'm looking for something along the lines of Test::More::isa_ok that we could use like

Re: Testing Ties

2005-04-12 Thread James E Keenan
James E Keenan wrote: How do you test that a variable has been tied to a class? I looked through Test::More; the term 'tie' is conspicuous by its absence. I also searched the archives of this list and couldn't locate anything. I'm looking for something along the lines of Test::More::isa_ok

Re: Testing Ties

2005-04-12 Thread Michael G Schwern
On Tue, Apr 12, 2005 at 06:58:34PM -0400, James E Keenan wrote: How do you test that a variable has been tied to a class? $ perldoc -f tied tied VARIABLE Returns a reference to the object underlying VARIABLE (the same value that was originally returned by the

Re: Pugs 6.2.0 released.

2005-04-12 Thread Andrew Savige
--- Matt Fowles [EMAIL PROTECTED] wrote: Autrijus~ On Apr 12, 2005 3:50 PM, Autrijus Tang [EMAIL PROTECTED] wrote: * `xor` and `^^` now short-circuits How does this work? I thought xor /had/ to evaluate both sides. It does. At least according to Perl 6 and Parrot Essentials book, page

Re: Testing Ties

2005-04-12 Thread Kevin Scaldeferri
On Apr 12, 2005, at 3:58 PM, James E Keenan wrote: How do you test that a variable has been tied to a class? I looked through Test::More; the term 'tie' is conspicuous by its absence. I also searched the archives of this list and couldn't locate anything. I'm looking for something along the

[perl #34935] [PATCH] r7818: removing more warnings in src/

2005-04-12 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34935] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34935 This transaction appears to have no contentthis patch against r7818 should eliminate

[perl #34936] [PATCH] r7818: removing more warnings in other dirs

2005-04-12 Thread via RT
# New Ticket Created by jerry gay # Please include the string: [perl #34936] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34936 This transaction appears to have no contentthis patch covers charset/, ops/, pf/,

[perl #34937] [PATCH] Absolute library paths on Win32

2005-04-12 Thread via RT
# New Ticket Created by Philip Taylor # Please include the string: [perl #34937] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34937 This patch makes Parrot recognise /path/to/file and c:/path/to/file as absolute

Re: Testing Ties

2005-04-12 Thread James E Keenan
Michael G Schwern wrote: ie. get the object from the tied variable and then treat it like any other object. isa_ok tied $var, A::Class; tie() always returns an object. use Tie::File; tie @data, 'Tie::File', $file or die; is_tied(@data, $file, [EMAIL PROTECTED] is tied to \$file); That

Re: Pugs 6.2.0 released.

2005-04-12 Thread Luke Palmer
Andrew Savige writes: --- Matt Fowles [EMAIL PROTECTED] wrote: Autrijus~ On Apr 12, 2005 3:50 PM, Autrijus Tang [EMAIL PROTECTED] wrote: * `xor` and `^^` now short-circuits How does this work? I thought xor /had/ to evaluate both sides. It does. At least according to Perl 6 and

trim() and words() functions?

2005-04-12 Thread gcomnz
Hey all, not sure if I'm just missing some obvious source of information, but I used trim() as a function in a cookbook example, then realized that it's not even in S29... There is a brief mention of trim(), as well as words() (odd as the words() function may seem, to me at least), at

Re: Pugs 6.2.0 released.

2005-04-12 Thread John Macdonald
On Tuesday 12 April 2005 19:18, Andrew Savige wrote: It does. At least according to Perl 6 and Parrot Essentials book, page 36 it does (I couldn't find details on xor operator in S03). I added some xor tests which Autrijus fixed. I'm worried now that my tests may be wrong. On page 36 it says:

Re: Pugs 6.2.0 released.

2005-04-12 Thread Darren Duncan
At 8:27 PM -0400 4/12/05, John Macdonald wrote: The mathematical definition of xor for two arguments is true if exactly one argument is true, false otherwise. Yes. When that gets generalized to multiple arguments it means true if an odd number of the arguments are true, false otherwise. Is this

Re: Pugs 6.2.0 released.

2005-04-12 Thread Luke Palmer
Darren Duncan writes: At 8:27 PM -0400 4/12/05, John Macdonald wrote: The mathematical definition of xor for two arguments is true if exactly one argument is true, false otherwise. Yes. When that gets generalized to multiple arguments it means true if an odd number of the arguments are

Re: Pugs 6.2.0 released.

2005-04-12 Thread John Macdonald
On Tuesday 12 April 2005 20:45, Darren Duncan wrote: At 8:27 PM -0400 4/12/05, John Macdonald wrote: The mathematical definition of xor for two arguments is true if exactly one argument is true, false otherwise. Yes. When that gets generalized to multiple arguments it means true if an

Re: [PROPOSAL] calling convention abstraction

2005-04-12 Thread Bob Rogers
From: Roger Hale [EMAIL PROTECTED] Date: Mon, 11 Apr 2005 09:30:32 -0400 Bob Rogers wrote: From: Roger Hale [EMAIL PROTECTED] Date: Thu, 07 Apr 2005 04:23:41 -0400 Leopold Toetsch wrote: Roger Hale [EMAIL PROTECTED] wrote: Leopold Toetsch

Re: Pugs 6.2.0 released.

2005-04-12 Thread Patrick R. Michaud
On Tue, Apr 12, 2005 at 05:45:24PM -0700, Darren Duncan wrote: At 8:27 PM -0400 4/12/05, John Macdonald wrote: The mathematical definition of xor for two arguments is true if exactly one argument is true, false otherwise. Yes. When that gets generalized to multiple arguments it means

Re: subscripts are.... objects?

2005-04-12 Thread Rod Adams
Thomas Sandlaß wrote: Yuval Kogman wrote: You can perform set operations on them: [!-2] Hmm, that would produce a boolean index. is the subscript for everything but the second to last element. By using a context enforcer (subscript [] ?, maybe since lists are lazyy they can just be

Re: Pugs 6.2.0 released.

2005-04-12 Thread Patrick R. Michaud
On Tue, Apr 12, 2005 at 09:15:13PM -0400, John Macdonald wrote: On Tuesday 12 April 2005 20:45, Darren Duncan wrote: At 8:27 PM -0400 4/12/05, John Macdonald wrote: The mathematical definition of xor for two arguments is true if exactly one argument is true, false otherwise. Yes.

Re: trim() and words() functions?

2005-04-12 Thread Rod Adams
gcomnz wrote: Hey all, not sure if I'm just missing some obvious source of information, but I used trim() as a function in a cookbook example, then realized that it's not even in S29... There is a brief mention of trim(), as well as words() (odd as the words() function may seem, to me at least),

Re: Pugs 6.2.0 released.

2005-04-12 Thread John Macdonald
On Tuesday 12 April 2005 22:36, Patrick R. Michaud wrote: On Tue, Apr 12, 2005 at 09:15:13PM -0400, John Macdonald wrote: On Tuesday 12 April 2005 20:45, Darren Duncan wrote: At 8:27 PM -0400 4/12/05, John Macdonald wrote: The mathematical definition of xor for two arguments is true if

Re: trim() and words() functions?

2005-04-12 Thread gcomnz
Rod Adams wrote: Well, some form of words() exists... only spelled q:w//, with various doublings of q and w available, some of which can be spelled or «», though to be honest, I've lost track of how often the meanings of those as quoters has changed. I suspect S02 or S03 would have that

Re: trim() and words() functions?

2005-04-12 Thread gcomnz
I agree, with my (probably wrong) impression that words() was a split a string into words function, I was thinking to myself bloat, but then I was also reminding myself that Perl's power as a natural language text processor has always been a premium feature (somehow even prior to full

Re: Pugs 6.2.0 released.

2005-04-12 Thread Patrick R. Michaud
On Tue, Apr 12, 2005 at 11:13:18PM -0400, John Macdonald wrote: On Tuesday 12 April 2005 22:36, Patrick R. Michaud wrote: It's entirely possible that I have my mathematics messed up here, but Cxor doesn't seem to me to be entirely associative, at least not as I commonly think of

  1   2   >