Re: Test Case: Complex Numbers

2005-11-10 Thread Luke Palmer
Just some initial thoughts and syntax issues. I'll come back to it on the conceptual side a little later. On 11/10/05, Jonathan Lang <[EMAIL PROTECTED]> wrote: > > class complexRectilinear { > has $.x, $.y; Hmm, that might need to be has ($.x, $.y); However, inlining "has"s isn't possibl

Re: given too little

2005-11-10 Thread Rob Kinyon
> But if we have a mandatory type inferencer underneath that is merely > ignored when it's inconvenient, then we could probably automatically > delay evaluation of the code. . . . I'm not so certain that ignoring the mandatory type inferencer is a good idea, even when it's inconvenient. I don'

Re: given too little

2005-11-10 Thread Miroslav Silovic
[EMAIL PROTECTED] wrote: If so then my and Eric's wishes are answered: when { $_ > 5 } { ... } when { .caloric_value > $doctors_orders } { ... } This isn't implemented in pugs yet, but I guess it can be once this is clarified. Actually when $_ > 5 { ... } when .caloric_valu

Re: given too little

2005-11-10 Thread Larry Wall
On Thu, Nov 10, 2005 at 10:11:50AM +0100, TSa wrote: : HaloO, : : Gaal Yahas wrote: : >I know why the following doesn't work: : > : > given $food { : > when Pizza | Lazagna { .eat } : > when .caloric_value > $doctors_orders { warn "no, no no" } : > # ... : > } : > :

[perl #37651] [PATCH] Add $LINK_DYNAMIC when linking pbc_merge

2005-11-10 Thread via RT
# New Ticket Created by Nick Glencross # Please include the string: [perl #37651] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37651 > This patch is required for pbc_merge on some platforms (HP-UX is the one that I see i

Re: given too little

2005-11-10 Thread Gaal Yahas
On Thu, Nov 10, 2005 at 07:23:15AM -0700, Eric wrote: > I'm pretty sure i've heard this discussed but checking S04/Switch > Statments doesn't make any mention of it. If it has been settled > could we get some doc updates? I looked again more carefully at S04 and saw that Any ~~ Code<$> and Any ~~

Re: reconfiguring configure

2005-11-10 Thread Simon Wistow
On Wed, Nov 09, 2005 at 05:57:22PM -1000, Joshua Hoblitt said: > I've taken a look at using Module::Pluggable to register configure > steps. The simplest way to do this is to let Module::Pluggable search > through the ./config directory. This requires renaming all of the .pl > configure files to

Re: given too little

2005-11-10 Thread Eric
On 11/10/05, Gaal Yahas <[EMAIL PROTECTED]> wrote: > I'm a little bothered that this is consistent but (to me, at least) > unintuitive. Testing methods on the topic is something people may want > to do often: is there a way to hide away the control logic? I'm tempted > to propose that when a ".meth

Unicode strings and encodings

2005-11-10 Thread Leopold Toetsch
I'm currently going through the various string functions and make them usable for all string encdodings we have. It's not finished yet, but a lot already works. We have: charsets: binary, ascii, iso-8859-1, unicode encodings: fixed_8, utf8, utf16, ucs2 utf16 is a bit special, as it falls i

small API change to string_chopn

2005-11-10 Thread Leopold Toetsch
string_chopn was badly broken in several ways: - calculated wrong string.bufused for e.g. utf8 - tried to modfiy COW or external strings in place This is fixed now, but string_chopn needs and extra argument 'in_place' to work correctly. leo

Re: reconfiguring configure

2005-11-10 Thread Leopold Toetsch
Joshua Hoblitt wrote: I've taken a look at using Module::Pluggable to register configure steps. The simplest way to do this is to let Module::Pluggable search through the ./config directory. This requires renaming all of the .pl configure files to .pm because of hardwired assumptions in Module:

Re: given too little

2005-11-10 Thread TSa
HaloO, Gaal Yahas wrote: I know why the following doesn't work: given $food { when Pizza | Lazagna { .eat } when .caloric_value > $doctors_orders { warn "no, no no" } # ... } The expression in the second when clause is smart-matched against $food, not teste

given too little

2005-11-10 Thread Gaal Yahas
I know why the following doesn't work: given $food { when Pizza | Lazagna { .eat } when .caloric_value > $doctors_orders { warn "no, no no" } # ... } The expression in the second when clause is smart-matched against $food, not tested for truth like an if. So c