Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Canvas's find returns a hash ref in scalar context ...
This is a behavior changes (may be related to Change 2850) which is
not documented in Canvas.pod (in Tk-804.027).

Here's a patch for the doc:

diff -Naur Tk-804.027.old/pod/Canvas.pod Tk-804.027/pod/Canvas.pod
--- Tk-804.027.old/pod/Canvas.pod	2004-02-28 17:19:37.000000000 +0100
+++ Tk-804.027/pod/Canvas.pod	2004-10-14 14:19:24.000000000 +0200
@@ -599,9 +599,9 @@

=item I<$canvas>-E<gt>B<find>(I<searchCommand, >?I<arg, arg, ...>?)

-This method returns a list consisting of all the items that
+In array context, this method returns a list consisting of all the items th
at
meet the constraints specified by I<searchCommand> and
-I<arg>'s.
+I<arg>'s. In scalar context, this method returns the same informations in a
n array ref.
I<SearchCommand> and I<args> have any of the forms
accepted by the B<addtag> method.
The items are returned in stacking order, with the lowest item first.


Cheers

--
Dominique Dumont
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Report this thread to moderator Post Follow-up to this message
Old Post
Dominique Dumont
10-14-04 08:57 PM


Re: Canvas's find returns a hash ref in scalar context ...
Dominique Dumont <domi@komarr.grenoble.hp.com> writes:
>This is a behavior changes (may be related to Change 2850) which is
>not documented in Canvas.pod (in Tk-804.027).

Thanks for the patch.
This wasn't a deliberate change, but a side effect of cleaning up
the coreTk/perl glue code.


>
>Here's a patch for the doc:
>
>diff -Naur Tk-804.027.old/pod/Canvas.pod Tk-804.027/pod/Canvas.pod
>--- Tk-804.027.old/pod/Canvas.pod	2004-02-28 17:19:37.000000000 +0100
>+++ Tk-804.027/pod/Canvas.pod	2004-10-14 14:19:24.000000000 +0200
>@@ -599,9 +599,9 @@
>
> =item I<$canvas>-E<gt>B<find>(I<searchCommand, >?I<arg, arg, ...>?)
>
>-This method returns a list consisting of all the items that
>+In array context, this method returns a list consisting of all the items t
hat
> meet the constraints specified by I<searchCommand> and
>-I<arg>'s.
>+I<arg>'s. In scalar context, this method returns the same informations in 
an array ref.
> I<SearchCommand> and I<args> have any of the forms
> accepted by the B<addtag> method.
> The items are returned in stacking order, with the lowest item first.
>
>
>Cheers


-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Report this thread to moderator Post Follow-up to this message
Old Post
Nick Ing-Simmons
10-15-04 01:56 PM


Re: Canvas's find returns a hash ref in scalar context ...
Nick Ing-Simmons <nick@ing-simmons.net> writes:

> Thanks for the patch.  This wasn't a deliberate change, but a side
> effect of cleaning up the coreTk/perl glue code.

No problem. Cleaning up is always good... Eventually. ;-)

Cheers

--
Dominique Dumont
"Delivering successful solutions requires giving people what they
need, not what they want." Kurt Bittner
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Report this thread to moderator Post Follow-up to this message
Old Post
Dominique Dumont
10-18-04 08:59 PM


Re: Canvas's find returns a hash ref in scalar context ...
Dominique Dumont <domi@komarr.grenoble.hp.com> writes:
>This is a behavior changes (may be related to Change 2850) which is
>not documented in Canvas.pod (in Tk-804.027).
>
>Here's a patch for the doc:

Applied.

>
>diff -Naur Tk-804.027.old/pod/Canvas.pod Tk-804.027/pod/Canvas.pod
>--- Tk-804.027.old/pod/Canvas.pod	2004-02-28 17:19:37.000000000 +0100
>+++ Tk-804.027/pod/Canvas.pod	2004-10-14 14:19:24.000000000 +0200
>@@ -599,9 +599,9 @@
>
> =item I<$canvas>-E<gt>B<find>(I<searchCommand, >?I<arg, arg, ...>?)
>
>-This method returns a list consisting of all the items that
>+In array context, this method returns a list consisting of all the items t
hat
> meet the constraints specified by I<searchCommand> and
>-I<arg>'s.
>+I<arg>'s. In scalar context, this method returns the same informations in 
an array ref.
> I<SearchCommand> and I<args> have any of the forms
> accepted by the B<addtag> method.
> The items are returned in stacking order, with the lowest item first.
>
>
>Cheers


-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu

Report this thread to moderator Post Follow-up to this message
Old Post
Nick Ing-Simmons
01-03-05 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:00 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.