9 years agoTypo in comment
cm-perl [Fri, 12 Dec 2014 16:17:10 +0000]
Typo in comment

10 years agochangelog Try-Tiny-0.22
Jesse Luehrs [Tue, 29 Apr 2014 19:40:02 +0000]
changelog

10 years agofix tabs
Jesse Luehrs [Tue, 29 Apr 2014 19:30:33 +0000]
fix tabs

10 years agoadd Sub::Name and perl 5.010 to test recommendations (fixes #18)
Jesse Luehrs [Tue, 29 Apr 2014 19:20:42 +0000]
add Sub::Name and perl 5.010 to test recommendations (fixes #18)

10 years agochangelog Try-Tiny-0.21
Jesse Luehrs [Tue, 15 Apr 2014 13:46:36 +0000]
changelog

10 years agosigh
Jesse Luehrs [Tue, 15 Apr 2014 13:33:01 +0000]
sigh

10 years agochangelog
Jesse Luehrs [Tue, 15 Apr 2014 13:22:11 +0000]
changelog

10 years agopackaging
Jesse Luehrs [Tue, 15 Apr 2014 13:20:45 +0000]
packaging

10 years agoskip test if Capture::Tiny is too old (Martin Popel, fixes #17)
Jesse Luehrs [Tue, 15 Apr 2014 13:19:45 +0000]
skip test if Capture::Tiny is too old (Martin Popel, fixes #17)

10 years agochangelog Try-Tiny-0.20
Jesse Luehrs [Fri, 21 Mar 2014 21:20:24 +0000]
changelog

10 years agochangelog
Jesse Luehrs [Fri, 21 Mar 2014 21:19:19 +0000]
changelog

10 years agoMerge pull request #15 from Flimm/master
Jesse Luehrs [Fri, 21 Mar 2014 20:19:27 +0000]
Merge pull request #15 from Flimm/master

Add warning to POD about try/finally

10 years agoAdd warning to POD about try/finally
David Lowe [Fri, 7 Mar 2014 17:33:54 +0000]
Add warning to POD about try/finally

try/finally suppresses errors, which is unexpected behaviour if you come
from another programming language.

10 years agochangelog Try-Tiny-0.19
Jesse Luehrs [Thu, 23 Jan 2014 01:52:51 +0000]
changelog

10 years agochangelog
Jesse Luehrs [Thu, 23 Jan 2014 01:48:15 +0000]
changelog

10 years agofix test plan
Jesse Luehrs [Thu, 23 Jan 2014 01:36:30 +0000]
fix test plan

10 years agoMerge pull request #11 from ilmari/global-destruction
Jesse Luehrs [Thu, 23 Jan 2014 01:34:37 +0000]
Merge pull request #11 from ilmari/global-destruction

Import 'import' instead of inheriting it

10 years agopackaging stuff
Jesse Luehrs [Thu, 23 Jan 2014 01:30:47 +0000]
packaging stuff

10 years agoMerge pull request #13 from anaxagoras/master
Jesse Luehrs [Thu, 23 Jan 2014 00:42:20 +0000]
Merge pull request #13 from anaxagoras/master

Better docs on capturing success with catch block

10 years agosecond example now behaves the same as the first
awalker [Wed, 22 Jan 2014 19:02:56 +0000]
second example now behaves the same as the first

10 years agoBetter docs on capturing success with catch block
anaxagoras [Tue, 21 Jan 2014 16:47:24 +0000]
Better docs on capturing success with catch block

While there is a note that calls it out below, I believe the behavior and usage of capturing success when also using a catch{} block is sufficiently different to the example that it merits its own example in the same code block. My rationale is twofold:

1) Because it is sufficiently different in behavior, giving an example goes a long way towards understanding.
2) Because this is a critical feature to have fail and it might be easy for someone reading the docs to digest the example and move on before reading the note below (which is unemphasized), it is best to have the second code example alongside the first with a meaningful name so that they are both digested at the same time.

11 years agoTest loading during global destruction
Dagfinn Ilmari Mannsåker [Thu, 24 Oct 2013 22:02:43 +0000]
Test loading during global destruction

11 years agoImport 'import' instead of inheriting it
Dagfinn Ilmari Mannsåker [Sun, 20 Oct 2013 12:53:36 +0000]
Import 'import' instead of inheriting it

This fixes errors when the first use of Try::Tiny happens during global
destruction on Perl >= 5.10.0.

The problem is that the inheritance caches don't get invalidated during
global destruction, and base.pm skips classes that the calling class
already inherits from, thus populating an initial empty inheritance
cache, which doesn't get invalidated when it adds the class to @ISA.

11 years agochangelog Try-Tiny-0.18
Jesse Luehrs [Sat, 17 Aug 2013 18:33:25 +0000]
changelog

11 years agochangelog
Jesse Luehrs [Sat, 17 Aug 2013 18:33:08 +0000]
changelog

11 years agoMerge pull request #10 from pghmcfc/old-test-more
Jesse Luehrs [Sat, 17 Aug 2013 18:31:25 +0000]
Merge pull request #10 from pghmcfc/old-test-more

Avoid dependency on Test::More 0.88

11 years agoThe use of done_testing implies a dependency of Test::More 0.88 or
Paul Howarth [Sat, 17 Aug 2013 18:02:57 +0000]
The use of done_testing implies a dependency of Test::More 0.88 or
later. To avoid this, and provide compatibility with older versions,
remove done_testing and supply a test plan.

To ensure that the end of the test is reached (rather than exiting
early due to an error), I added an additional "pass" test to bump
the test count.

11 years agochangelog Try-Tiny-0.17
Jesse Luehrs [Fri, 16 Aug 2013 17:29:19 +0000]
changelog

11 years agochangelog
Jesse Luehrs [Fri, 16 Aug 2013 18:30:10 +0000]
changelog

11 years agoMerge pull request #9 from haarg/gd-fork-bug
Jesse Luehrs [Fri, 16 Aug 2013 17:21:18 +0000]
Merge pull request #9 from haarg/gd-fork-bug

work around perl bug where pads may be reused in cleanup after fork

11 years agowork around perl bug where pads may be reused in cleanup after fork
Graham Knop [Fri, 16 Aug 2013 06:08:22 +0000]
work around perl bug where pads may be reused in cleanup after fork

During global destruction triggered by a explicit exit after forking,
perl may re-use the pad for try in a nested call in a DESTROY.  All
variables used must be explictly initialized to avoid this.

11 years agochangelog Try-Tiny-0.16
Jesse Luehrs [Wed, 10 Jul 2013 15:50:24 +0000]
changelog

11 years agochangelog
Jesse Luehrs [Wed, 10 Jul 2013 15:15:07 +0000]
changelog

11 years agoremove accidental Sub::Name test dep
Jesse Luehrs [Wed, 10 Jul 2013 15:14:44 +0000]
remove accidental Sub::Name test dep

11 years agoMerge pull request #8 from markstos/master
Jesse Luehrs [Tue, 9 Jul 2013 21:05:36 +0000]
Merge pull request #8 from markstos/master

fix missing semicolon in docs.

11 years agoAdd missing semicolon in docs
Mark Stosberg [Tue, 9 Jul 2013 21:02:48 +0000]
Add missing semicolon in docs

This looked wrong without a semicolon, so I tested it. Sure enough, it was a syntax error without it, and ran as expected with it.

11 years agochangelog Try-Tiny-0.15
Jesse Luehrs [Mon, 8 Jul 2013 21:58:58 +0000]
changelog

11 years agochangelog
Jesse Luehrs [Mon, 8 Jul 2013 21:58:22 +0000]
changelog

11 years agomake this consistent
Jesse Luehrs [Mon, 8 Jul 2013 21:57:14 +0000]
make this consistent

11 years agofix line endings
Mark Fowler [Fri, 5 Jul 2013 19:40:46 +0000]
fix line endings

11 years agotests for finally name too
Mark Fowler [Fri, 5 Jul 2013 19:06:03 +0000]
tests for finally name too

11 years agotests for naming
Mark Fowler [Fri, 5 Jul 2013 18:42:56 +0000]
tests for naming

11 years agoChange caller to show blocks belonging to our caller
Mark Fowler [Wed, 25 Jul 2012 15:13:56 +0000]
Change caller to show blocks belonging to our caller

11 years agoname the try, catch and finally blocks
Mark Fowler [Wed, 25 Jul 2012 14:59:10 +0000]
name the try, catch and finally blocks

11 years agochangelog Try-Tiny-0.14
Jesse Luehrs [Fri, 5 Jul 2013 19:19:59 +0000]
changelog

11 years agoalso die on catch/finally in scalar context (RT#81070)
Jesse Luehrs [Fri, 5 Jul 2013 18:51:07 +0000]
also die on catch/finally in scalar context (RT#81070)

11 years agochangelog Try-Tiny-0.13
Jesse Luehrs [Thu, 4 Jul 2013 16:23:38 +0000]
changelog

11 years agoeh, don't test 5.8
Jesse Luehrs [Thu, 4 Jul 2013 16:11:09 +0000]
eh, don't test 5.8

11 years agoupdate test counts for removing use_ok
Jesse Luehrs [Thu, 4 Jul 2013 16:02:36 +0000]
update test counts for removing use_ok

11 years agoupdate this link too
Jesse Luehrs [Thu, 4 Jul 2013 16:12:56 +0000]
update this link too

11 years agostop using use_ok, it's pointless
Jesse Luehrs [Thu, 4 Jul 2013 16:10:02 +0000]
stop using use_ok, it's pointless

11 years agodzilify and stuff
Jesse Luehrs [Thu, 4 Jul 2013 16:06:00 +0000]
dzilify and stuff

11 years agoMerge pull request #7 from ribasushi/master
Jesse Luehrs [Thu, 4 Jul 2013 14:32:25 +0000]
Merge pull request #7 from ribasushi/master

Various housekeeping etc

11 years agoFix linkage brainfart from 2245f1ae
Peter Rabbitson [Thu, 4 Jul 2013 10:58:38 +0000]
Fix linkage brainfart from 2245f1ae

11 years agoThe construct introduced in 2b0d579d8 confuses perl 5.6 - simplify
Peter Rabbitson [Thu, 4 Jul 2013 09:42:24 +0000]
The construct introduced in 2b0d579d8 confuses perl 5.6 - simplify

11 years agoMake sure users are properly notified of (useless) exceptions in finally blocks
Peter Rabbitson [Thu, 4 Jul 2013 08:25:02 +0000]
Make sure users are properly notified of (useless) exceptions in finally blocks

It is possible to rewrite Try::Tiny to invoke the finally blocks without
the use of scope guards, however to do this an extra eval frame around
catch will have to be introduced. Furthermore code in the wild may rely
on the "ignorance" of a finally() exception.

In short - the proper fix may no longer be feasible due to backcompat
issues, therefore the current warning seems like the only feasible
compromise.

11 years agocorrect prototypes in docs
Ricardo Signes [Sat, 15 Sep 2012 02:15:31 +0000]
correct prototypes in docs

11 years agoClarify exception on unexpected try() arguments
Peter Rabbitson [Thu, 4 Jul 2013 07:02:18 +0000]
Clarify exception on unexpected try() arguments

11 years agoSanity check erroneous invocations
Peter Rabbitson [Thu, 4 Jul 2013 06:45:13 +0000]
Sanity check erroneous invocations

11 years agoFix broken link to slides (RT#55659)
Peter Rabbitson [Thu, 4 Jul 2013 05:48:56 +0000]
Fix broken link to slides (RT#55659)

11 years agoWe already explicitly save the value of $@ - local()ization is not needed
Peter Rabbitson [Thu, 4 Jul 2013 05:06:06 +0000]
We already explicitly save the value of $@ - local()ization is not needed

511c05cae introduced an extension to try{} - unlike in an eval{} a try{}
block has access to the previous value of $@. Since we already have a copy,
we can do a manual restore of $@ instead of the expensive local() mechanism.

Results in a 7% speedup of bare try{} on 5.16

11 years agoThis is no longer a TODO, but given the experimental nature not ready to be documented
Peter Rabbitson [Thu, 4 Jul 2013 04:19:38 +0000]
This is no longer a TODO, but given the experimental nature not ready to be documented

https://metacpan.org/module/SHAY/perl-5.17.3/pod/perldelta.pod#given-now-aliases-the-global-_

11 years ago"Modernize" code a bit
Peter Rabbitson [Thu, 4 Jul 2013 04:12:42 +0000]
"Modernize" code a bit

Turn on warnings everywhere (5.6 being lowest target)
Silence experimental warnings in given/when tests

11 years agofix tests failing on 5.6.x due to differing DESTROY semantics
Peter Rabbitson [Thu, 4 Jul 2013 03:48:34 +0000]
fix tests failing on 5.6.x due to differing DESTROY semantics

11 years agoDetabardize - standardize code/tests on 2-space indent
Peter Rabbitson [Thu, 4 Jul 2013 03:46:56 +0000]
Detabardize - standardize code/tests on 2-space indent

Zero functional changes (examine under git diff -w)

11 years agochangelog and version bump Try-Tiny-0.12
Jesse Luehrs [Wed, 2 Jan 2013 16:28:06 +0000]
changelog and version bump

11 years agothis todo is only relevant before 5.14
Jesse Luehrs [Wed, 2 Jan 2013 16:27:27 +0000]
this todo is only relevant before 5.14

11 years agoMYMETA stuff to MANIFEST.SKIP
Jesse Luehrs [Wed, 2 Jan 2013 16:23:59 +0000]
MYMETA stuff to MANIFEST.SKIP

11 years agoMerge pull request #5 from cebjyre/docs
Jesse Luehrs [Wed, 2 Jan 2013 16:22:10 +0000]
Merge pull request #5 from cebjyre/docs

Documentation fixes

11 years agoDocumentation fixes
Glenn Fowler [Thu, 20 Dec 2012 01:33:01 +0000]
Documentation fixes

Fixed a simple typo, and an internal POD link.

12 years agoMerge pull request #4 from karenetheridge/topic/doc_20121114
Jesse Luehrs [Wed, 14 Nov 2012 22:33:39 +0000]
Merge pull request #4 from karenetheridge/topic/doc_20121114

Documentation improvements

12 years agoC<> tags, minor punctuation and grammar fixes
Karen Etheridge [Wed, 14 Nov 2012 21:08:50 +0000]
C<> tags, minor punctuation and grammar fixes

12 years agoadd alternative mechanisms for fallback return values
Karen Etheridge [Wed, 14 Nov 2012 21:02:01 +0000]
add alternative mechanisms for fallback return values

12 years agoadd repo info to metadata
Karen Etheridge [Wed, 14 Nov 2012 20:59:46 +0000]
add repo info to metadata

13 years agochangelog and version bump Try-Tiny-0.11
Jesse Luehrs [Tue, 30 Aug 2011 15:50:18 +0000]
changelog and version bump

13 years agobetter example for returning from a try block (forwardever)
Jesse Luehrs [Tue, 10 May 2011 00:35:48 +0000]
better example for returning from a try block (forwardever)

13 years agoTest context/RV of try/catch/finally blocks
Peter Rabbitson [Thu, 28 Apr 2011 11:41:49 +0000]
Test context/RV of try/catch/finally blocks

13 years agochangelog and version bump Try-Tiny-0.10
Jesse Luehrs [Wed, 27 Apr 2011 22:36:41 +0000]
changelog and version bump

13 years agoclarify the state of $_ in finally blocks
Jesse Luehrs [Wed, 27 Apr 2011 22:34:43 +0000]
clarify the state of $_ in finally blocks

13 years agocaveat about error-silencing
Ricardo Signes [Thu, 24 Feb 2011 14:48:30 +0000]
caveat about error-silencing

14 years agochangelog and version bump Try-Tiny-0.09
Jesse Luehrs [Sun, 28 Nov 2010 22:42:15 +0000]
changelog and version bump

14 years agodon't index ::ScopeGuard
Jesse Luehrs [Sun, 28 Nov 2010 22:41:25 +0000]
don't index ::ScopeGuard

14 years agochangelog and version bump Try-Tiny-0.08
Jesse Luehrs [Sun, 28 Nov 2010 22:00:36 +0000]
changelog and version bump

14 years agoadd test for finally being called when catch dies
Jesse Luehrs [Sun, 28 Nov 2010 21:53:14 +0000]
add test for finally being called when catch dies

14 years agofix issue with blead (require 5.010 != use 5.010)
Jesse Luehrs [Sun, 28 Nov 2010 21:39:13 +0000]
fix issue with blead (require 5.010 != use 5.010)

14 years agoavoid a warning when testing with -w Try-Tiny-0.07
Ricardo Signes [Thu, 21 Oct 2010 20:19:08 +0000]
avoid a warning when testing with -w

14 years agono, do not sign our release
Ricardo Signes [Thu, 21 Oct 2010 20:18:27 +0000]
no, do not sign our release

14 years agobump version for release
Ricardo Signes [Thu, 21 Oct 2010 20:16:03 +0000]
bump version for release

14 years agotypo fix
Ricardo Signes [Thu, 21 Oct 2010 18:58:10 +0000]
typo fix

14 years agodocument changes for next version
Ricardo Signes [Thu, 21 Oct 2010 18:56:57 +0000]
document changes for next version

14 years agodocument args to finally{} block
Ricardo Signes [Thu, 21 Oct 2010 18:52:22 +0000]
document args to finally{} block

14 years agotest for finally{} getting the error
Ricardo Signes [Thu, 21 Oct 2010 18:52:14 +0000]
test for finally{} getting the error

14 years agoallow multiple finally{} per try{}; pass error in
Ricardo Signes [Thu, 21 Oct 2010 18:41:39 +0000]
allow multiple finally{} per try{}; pass error in

14 years agoAdd docs about @_ aliasing
Peter Rabbitson [Tue, 1 Jun 2010 22:39:56 +0000]
Add docs about @_ aliasing

14 years agoversion bump Try-Tiny-0.06
Yuval Kogman [Thu, 27 May 2010 09:47:32 +0000]
version bump

14 years agochangelog
Yuval Kogman [Thu, 27 May 2010 09:47:21 +0000]
changelog

14 years agouse a plan instead of done_testing in TODO test
Yuval Kogman [Thu, 27 May 2010 09:46:50 +0000]
use a plan instead of done_testing in TODO test

14 years agoVersion bump Try-Tiny-0.05
Yuval Kogman [Wed, 26 May 2010 12:52:58 +0000]
Version bump

14 years agomove use test to BEGIN block
Alex [Mon, 22 Mar 2010 14:14:17 +0000]
move use test to BEGIN block

14 years agochangelog
Yuval Kogman [Tue, 23 Feb 2010 11:16:03 +0000]
changelog