BSD Ports

devel/p5-Long-Jump 0.000003nb1 NetBSD

Mechanism for returning to a specific point from a deeply nested stack

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
fe3d403c7e
License
gnu-gpl-v2 OR artistic
Categories
devel, perl5
Package size
6.6 KiB, 9.4 KiB installed

Description

Long::Jump essentially provides a multi-level return. You can mark a spot with setjump() and then unwind the stack back to that point from any nested stack frame by name using longjump(). You can also provide a list of return values.

This is not quite a match for C's long jump, but it is "close enough". It is safer than C's jump in that it only lets you escape frames by going up the stack, you cannot jump in other ways.

In the other systems

SystemPortVersion
NetBSDdevel/p5-Long-Jump0.000003nb1
FreeBSDdevel/p5-Long-Jump0.000005
DragonFlydevel/p5-Long-Jump0.000003
MidnightBSDdevel/p5-Long-Jump0.000005
HardenedBSDdevel/p5-Long-Jump0.000005
GhostBSDdevel/p5-Long-Jump0.000005

Install

Binary package:

pkgin install p5-Long-Jump

From pkgsrc:

cd /usr/pkgsrc/devel/p5-Long-Jump && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.000003nb1
NetBSD 10.1 aarch640.000003
SmartOS / illumos x86_640.000005
macOS 15 arm640.000005

Dependencies

Run dependencies 2
Required by 1

Commit history 2

DateCommitCreditsLog message
fe3d403c7e wen Update to 0.000005
Upstream changes: 0.000005 2026-04-17 11:29:35-07:00 America/Los_Angeles - Require Importer 0.025+ so `use Importer Importer => 'import'` works (older Importer versions like 0.014 lack 'import' in IMPORTER_MENU, causing "Importer does not export &import" at load time) 0.000004 2026-04-15 14:34:09-07:00 America/Los_Angeles - Add havejump() to check if a named jump point is currently set
618415630a wiz *: recursive bump for perl5 5.44.0