Skip Menu |
 

This queue is for tickets about the Set-Object CPAN distribution.

Report information
The Basics
Id: 123582
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Set-Object

People
Owner: Nobody in particular
Requestors: davem [...] iabyn.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-1.834 tagged_above=-99.9 required=10 tests=[AWL=-0.713, BAYES_00=-1.9, SPF_NEUTRAL=0.779] autolearn=no
Content-Disposition: inline
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <20171110112550.GB14213 [...] iabyn.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.834
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2B929240366 for <cpan-bug+Set-Object [...] hipster.bestpractical.com>; Fri, 10 Nov 2017 06:26:13 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x8do3ZAJUhA4 for <cpan-bug+Set-Object [...] hipster.bestpractical.com>; Fri, 10 Nov 2017 06:26:11 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 408D92401D3 for <bug-Set-Object [...] rt.cpan.org>; Fri, 10 Nov 2017 06:26:10 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id DA95211F34B for <bug-Set-Object [...] rt.cpan.org>; Fri, 10 Nov 2017 03:26:02 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 03D1F11F351 for <bug-Set-Object [...] rt.cpan.org>; Fri, 10 Nov 2017 03:26:00 -0800 (PST)
Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id C992D11F34B for <bug-Set-Object [...] rt.cpan.org>; Fri, 10 Nov 2017 03:25:53 -0800 (PST)
Received: from [86.177.59.191] (helo=iabyn.com) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from <davem [...] iabyn.com>) id 1eD7RX-0005kA-5M for bug-Set-Object [...] rt.cpan.org; Fri, 10 Nov 2017 11:25:51 +0000
Received: by iabyn.com (Postfix, from userid 1000) id 65048240D26; Fri, 10 Nov 2017 11:25:50 +0000 (GMT)
Delivered-To: cpan-bug+Set-Object [...] hipster.bestpractical.com
User-Agent: Mutt/1.6.1 (2016-04-27)
Subject: Set::Object->new() doesn't honour get magic
Return-Path: <davem [...] iabyn.com>
X-RT-Mail-Extension: set-object
X-Original-To: cpan-bug+Set-Object [...] hipster.bestpractical.com
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_700_799 0, SINGLE_URI_IN_BODY 0, SPF_PASS 0, URI_ENDS_IN_HTML 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __CD 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __HAS_FROM 0, __HAS_MSGID 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __USER_AGENT 0, __blackholes.mail-abuse.org_TIMEOUT , __zen.spamhaus.org_ERROR '
Date: Fri, 10 Nov 2017 11:25:50 +0000
X-Spam-Level:
X-Disclaimer: This disclaimer may not be read without permission
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.7.26.42117
To: bug-Set-Object [...] rt.cpan.org
From: Dave Mitchell <davem [...] iabyn.com>
X-RT-Original-Encoding: ascii
X-RT-Interface: Email
Content-Length: 685
Download (untitled) / with headers
text/plain 685b
Set::Object->new(), and probably other methods too, don't honour get magic on its args. For example: package TS { sub TIESCALAR { bless ["tied"] } sub FETCH { $_[0][0] } } my ($a1, $a2); $a1 = "plain"; tie $a2, 'TS'; use Set::Object; my $set = Set::Object->new($a1, $a2); print join ',', $set->members; outputs 'plain'; I'd expect 'plain,tied'. I imagine there will be a similar issue if a tied arg's FETCH() method returns a ref. See also https://rt.perl.org/Ticket/Display.html?id=132152. -- Little fly, thy summer's play my thoughtless hand has terminated with extreme prejudice. (with apologies to William Blake)
MIME-Version: 1.0
In-Reply-To: <20171110112550.GB14213 [...] iabyn.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20171110112550.GB14213 [...] iabyn.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-1389-1510319575-939.123582-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 96
Started work in branch https://github.com/rurban/Set-Object/tree/magic-rt123582 -- Reini Urban
MIME-Version: 1.0
In-Reply-To: <20171110112550.GB14213 [...] iabyn.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <20171110112550.GB14213 [...] iabyn.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-31777-1510324095-662.123582-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 128
Download (untitled) / with headers
text/plain 128b
The new args do now call get-magic. The others not. This fixes at least NetHack-Item. Fixed with 1.36, thanks! -- Reini Urban


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.