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, s
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
.ret
--- 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 comple
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/ http://use.perl.org/~petdanc
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
[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)
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
Browsing
http://www.vendian.org/parrot/source/?op=pod2html&file=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.
On Thu, 27 Nov 2003 15:04:47 -0500, Dan Sugalski <[EMAIL PROTECTED]>
wrote:
>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 transformatio
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 C to assign a property to a I:
:
: $a = $b but foo; # $a has property foo, $b does no
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 fi
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 trying
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
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
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 kn
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
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
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 o
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
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 strin
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 offse
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
Perl6 already does interpolation without special support from IMCC.
That's nice for it. Where do I go crib from?
Pete
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
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);
>
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
Here's a series of questions/confirmation requests about how properties
work (but specifically run-time properties, not traits):
Use C to assign a property to a I:
$a = $b but foo; # $a has property foo, $b does not
Properties are just out-of-band methods:
if $x.foo { print "$x ha
27 matches
Mail list logo