Skip Menu |

This queue is for tickets about the Math-Cartesian-Product CPAN distribution.

Report information
The Basics
Id: 106507
Status: resolved
Priority: 0/
Queue: Math-Cartesian-Product

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.009

Attachments


Subject: ignore truth of block if called in void context
if cartesian is called in void context, there is no point in building the tuple list to return, so the return value of the block shouldn't matter in that case. you can check the context using wantarray().
Subject: Re: [rt.cpan.org #106507] ignore truth of block if called in void context
Date: Tue, 18 Aug 2015 14:15:04 +0100
To: bug-Math-Cartesian-Product [...] rt.cpan.org
From: Philip R Brenan <philiprbrenan [...] gmail.com>
Hi Justin: Thanks for your note. I take your point. I will add it to my to-do list. Thanks for the pointer on wantarray(). Phil Philip R Brenan On Tue, Aug 18, 2015 at 12:51 PM, Justin Case via RT < bug-Math-Cartesian-Product@rt.cpan.org> wrote: Show quoted text
> Tue Aug 18 07:51:58 2015: Request 106507 was acted upon. > Transaction: Ticket created by justincase > Queue: Math-Cartesian-Product > Subject: ignore truth of block if called in void context > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: justincase@yopmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106507 > > > > if cartesian is called in void context, there is no point in building the > tuple list to return, so the return value of the block shouldn't matter in > that case. you can check the context using wantarray(). >
Subject: Re: [rt.cpan.org #106507] ignore truth of block if called in void context
Date: Tue, 18 Aug 2015 19:17:53 +0100
To: bug-Math-Cartesian-Product [...] rt.cpan.org
From: Philip R Brenan <philiprbrenan [...] gmail.com>
Fixed: https://metacpan.org/source/PRBRENAN/Math-Cartesian-Product-1.009 Thanks very much for your suggestion, the implementation of which has improved the module considerably: it can now tackle larger cases faster without the array overhead. Please let me know if you have any more suggestions. Thanks, Phil Philip R Brenan On Tue, Aug 18, 2015 at 2:15 PM, Philip R Brenan via RT < bug-Math-Cartesian-Product@rt.cpan.org> wrote: Show quoted text
> Queue: Math-Cartesian-Product > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106507 > > > Hi Justin: > > Thanks for your note. > > I take your point. I will add it to my to-do list. > > Thanks for the pointer on wantarray(). > > Phil > > Philip R Brenan > > On Tue, Aug 18, 2015 at 12:51 PM, Justin Case via RT < > bug-Math-Cartesian-Product@rt.cpan.org> wrote: >
> > Tue Aug 18 07:51:58 2015: Request 106507 was acted upon. > > Transaction: Ticket created by justincase > > Queue: Math-Cartesian-Product > > Subject: ignore truth of block if called in void context > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: justincase@yopmail.com > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106507 > > > > > > > if cartesian is called in void context, there is no point in building the > > tuple list to return, so the return value of the block shouldn't matter
> in
> > that case. you can check the context using wantarray(). > >
> >

Message body not shown because it is not plain text.