Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 6979
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: DROLSKY [...] cpan.org
Requestors: schwern [...] pobox.com
Cc:
AdminCc:

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



Subject: Accessors silently throw out arguments
I tried $d->day(1); Thinking it would be the equivalent of: $d->set(day => 1); But it had no effect. It also produced no error or warning. If its not going to work it should at least warn me about it.
Date: Thu, 15 Jul 2004 16:39:25 -0500 (CDT)
From: Dave Rolsky <autarch [...] urth.org>
To: Michael_G_Schwern via RT <bug-DateTime [...] rt.cpan.org>
CC: datetime <datetime [...] perl.org>
Subject: Re: [cpan #6979] Accessors silently throw out arguments
RT-Send-Cc:
[ cc'd back to the list for discussion ] On Thu, 15 Jul 2004, Michael_G_Schwern via RT wrote: Show quoted text
> This message about DateTime was sent to you by MSCHWERN <MSCHWERN@cpan.org> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=6979 > > > I tried > > $d->day(1); > > Thinking it would be the equivalent of: > > $d->set(day => 1);
Why, the docs don't say it will ;) Show quoted text
> But it had no effect. It also produced no error or warning. If its not > going to work it should at least warn me about it.
Hmm, a warning seems reasonable, although I'm almost inclined to die if anything, since if you're passing arguments to these methods you're probably pretty confused, and the sooner you find out about it the better. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/