Properties

2003-11-27 Thread Luke Palmer
Here's a series of questions/confirmation requests about how properties work (but specifically run-time properties, not traits): Use Cbut to assign a property to a Ivalue: $a = $b but foo; # $a has property foo, $b does not Properties are just out-of-band methods: if $x.foo {

Re: 'Core' Language Philosophy [was: Re: 'catch' statement modifier]

2003-11-27 Thread Michael G Schwern
On Wed, Nov 26, 2003 at 03:56:28PM -0500, Mark J. Reed wrote: Nicer it may be, But I use File::Find *because* it's in the core, so I don't have to worry about my programs being non-portable because I use a module that may not be installed. Of course with Perl 6 modules will be MUCH easier to

Re: Segfault on Win32, The

2003-11-27 Thread Leopold Toetsch
Vladimir Lipsky [EMAIL PROTECTED] wrote: Well, currently, test 61 in t/pmc/pmc.t causes an abrupt stop of the test session with the segfault box popping up. if (PObj_active_destroy_TEST(b)) VTABLE_destroy(interpreter, (PMC *)b);

Re: configure on windows

2003-11-27 Thread Pete Lomax
On 19 Nov 2003 16:03:59 +0100, Juergen Boemmels [EMAIL PROTECTED] wrote: Could you try out the attached patch. diff -u -r1.16 mswin32.pl --- config/init/hints/mswin32.pl15 Oct 2003 12:06:24 - 1.16 +++ config/init/hints/mswin32.pl19 Nov 2003 14:30:26 - @@ -95,6

Re: Some PIR How do I? questions

2003-11-27 Thread Pete Lomax
Perl6 already does interpolation without special support from IMCC. That's nice for it. Where do I go crib from? Pete

ordered associative arrays?

2003-11-27 Thread Anthony Heading
Hi, From what I can understand of the parrot internals docs, the native data structures correspond closely to perl in that there are scalars, arrays and hashes. I think perl5 is weaker for the lack of an ordered map type - and e.g. the C++ STL would lend some support to the idea that that is

Q: PMC constants and globals

2003-11-27 Thread Leopold Toetsch
As freeze/thaw is rudimentary working I'd like to use it for PackFile PMC constants. Currently we have subroutines only. 1) Unpacking a Sub PMC does: - create a constant Sub PMC - put that in the global hash with the (label-)name as key - finally make absolute (start,end) addresses from the

Re: ordered associative arrays?

2003-11-27 Thread Leopold Toetsch
Anthony Heading [EMAIL PROTECTED] wrote: ..., but will parrot make available any support - e.g. by providing a red-black tree or skiplist structure or something? Parrot has already an OrderedHash PMC. Nothing fancy though, just an hash + array and with problems, when access is mixed string

Re: Some PIR How do I? questions

2003-11-27 Thread Melvin Smith
At 12:02 PM 11/27/2003 +, Pete Lomax wrote: Perl6 already does interpolation without special support from IMCC. That's nice for it. Where do I go crib from? ? -Melvin

Re: cvs commit: parrot/config/gen/makefiles root.in

2003-11-27 Thread Leopold Toetsch
JüRgen BöMmels [EMAIL PROTECTED] wrote: +TOUCH = $(PERL) -e ${PQ}open(A,qq{$$_}) or die foreach @ARGV${PQ} Well done. *But* this f*cking command does still not update time stamps. Is this a Perl5 failure? Anyway, we need a (golfy) touch equivalent for these poor systems not providing one.

Re: cvs commit: parrot/config/gen/makefiles root.in

2003-11-27 Thread Juergen Boemmels
Leopold Toetsch [EMAIL PROTECTED] writes: JüRgen BöMmels [EMAIL PROTECTED] wrote: +TOUCH = $(PERL) -e ${PQ}open(A,qq{$$_}) or die foreach @ARGV${PQ} Well done. *But* this f*cking command does still not update time stamps. Is this a Perl5 failure? Anyway, we need a (golfy) touch

Re: cvs commit: parrot/config/gen/makefiles root.in

2003-11-27 Thread Leopold Toetsch
Juergen Boemmels [EMAIL PROTECTED] wrote: How about this? Its from perldoc -f utime: Ah thanks. I should have read that first :) TOUCH = $(PERL) -e ${PQ}$now = time; utime $now, $now, @ARGV;${PQ} s/\$now/\$\$now/g for Makefile's sake. Touches existing files fine. For imcc.y.flag we could

Re: Some PIR How do I? questions

2003-11-27 Thread Pete Lomax
On Thu, 27 Nov 2003 09:52:10 -0500, Melvin Smith [EMAIL PROTECTED] wrote: At 12:02 PM 11/27/2003 +, Pete Lomax wrote: Perl6 already does interpolation without special support from IMCC. That's nice for it. Where do I go crib from? ? -Melvin I'll rephrase. Is there anything knocking about

Re: Some PIR How do I? questions

2003-11-27 Thread Dan Sugalski
At 5:38 PM + 11/27/03, Pete Lomax wrote: On Thu, 27 Nov 2003 09:52:10 -0500, Melvin Smith [EMAIL PROTECTED] wrote: At 12:02 PM 11/27/2003 +, Pete Lomax wrote: Perl6 already does interpolation without special support from IMCC. That's nice for it. Where do I go crib from? ? -Melvin I'll

[CVS ci] --verbose flag to Configure.pl

2003-11-27 Thread Juergen Boemmels
Debugging configuration problems is a major problem. See e.g. the thread: configure on windows Therefor I just added a switch --verbose to Configure.pl. It does two things. First it outputs all changes to configuration data so you can trace the effects of the individual tests. Second it shows the

String formatting and transformation

2003-11-27 Thread Dan Sugalski
Well, this has been let slide far too long -- it's time to address string formatting and transformations. I know some folks have nudged on this stuff, so lets get it going. Here's a list of the string transformation stuff I think we need: upcase downcase swapcase upcase first letter downcase

pod/html error on the wiki?

2003-11-27 Thread Pete Lomax
Browsing http://www.vendian.org/parrot/source/?op=pod2htmlfile=docs/overview.pod I noticed tmp.pod: cannot resolve L in paragraph 16. at Pod/Html.pm line 1575. tmp.pod: cannot resolve L in paragraph 32. at Pod/Html.pm line 1575. tmp.pod: cannot resolve L in paragraph 38. at Pod/Html.pm line 1575.

Re: String formatting and transformation

2003-11-27 Thread Larry Wall
On Thu, Nov 27, 2003 at 10:16:50PM +, Pete Lomax wrote: : Of the above (IMO), up downcase are core functions, the rest not. It's not so simple. Upcasing the first letter should really use the Unicode title case mapping, not upper case. At least that's how Perl 5 does it. Larry

[perl #24559] [PATCH] P6C update vector (hyper) operators

2003-11-27 Thread via RT
# New Ticket Created by Allison Randal # Please include the string: [perl #24559] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24559 This patch updates vector operators (from ^+ to +) and the XOR operator (from ~~

default method, when no method found

2003-11-27 Thread ibotty
i am interested, if there is a method (for a PMC), that is automagically called, whenever a called method is not existent. i am sure, you have already thought about this, as this is a common feature of many dynamic languages. any pointer appreciated. thx, ~ibotty

Determining PMC memory addresses

2003-11-27 Thread Cory Spencer
Is there any way in PASM to determine whether or not two PMC's share the same memory address? That is, for example, given the following IMC snippet: .sub _eq .param pmc arg1 .param pmc arg2 .local int retv ... ... .pcc_begin_return

tesing exceptions of Error.pm

2003-11-27 Thread Gabor Szabo
Hi, in a code I am writing right now http://yapcom.pti.co.il/ I used to croak from functions deep down. When testing for such errors I used code like this in my test script: eval { f(); # will croak }; like($@, qr/Bad thing happened/, 'successfully tested bad thing'); Now I am

Re: tesing exceptions of Error.pm

2003-11-27 Thread Andy Lester
How am I going to test this ? Take a look at Test::Warn for warnings, and Test::Exception for errors. I think qa.perl.org needs a listing of Test::* modules so that people know what's available. xoa -- Andy Lester [EMAIL PROTECTED], AIM:petdance http://petdance.com/

Re: Properties

2003-11-27 Thread Larry Wall
On Thu, Nov 27, 2003 at 12:02:30AM -0700, Luke Palmer wrote: : Here's a series of questions/confirmation requests about how properties : work (but specifically run-time properties, not traits): : : Use Cbut to assign a property to a Ivalue: : : $a = $b but foo; # $a has property foo,

Re: Properties

2003-11-27 Thread Simon Cozens
[EMAIL PROTECTED] (Larry Wall) writes: P.S. I think we deserve a $rubyometer-- for bypassing mixins. I think you deserve loud and wild applause for an object model I want to use Right Now Dammit. -- Overall there is a smell of fried onions. (fnord)

Re: Properties

2003-11-27 Thread Paul Hodges
--- Larry Wall [EMAIL PROTECTED] wrote: ... in fact, we may be limiting the creation of properties to predeclared names, so that even return 0 but ture; can be caught at compile time. Excellent, so long as we can define new properties explicitly. At the moment, I draw a complete

Re: Properties

2003-11-27 Thread Larry Wall
On Thu, Nov 27, 2003 at 08:08:05PM -0800, Paul Hodges wrote: : : --- Larry Wall [EMAIL PROTECTED] wrote: : ... in fact, we may be limiting the creation of properties : to predeclared names, so that even : : return 0 but ture; : : can be caught at compile time. : : Excellent, so long