https://github.com/code-hex/p5-xs-closure-example
Example for how to make a closure on XS
https://github.com/code-hex/p5-xs-closure-example
Last synced: 3 months ago
JSON representation
Example for how to make a closure on XS
- Host: GitHub
- URL: https://github.com/code-hex/p5-xs-closure-example
- Owner: Code-Hex
- License: other
- Created: 2018-03-30T11:47:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T11:47:34.000Z (almost 8 years ago)
- Last Synced: 2025-02-05T14:42:11.738Z (12 months ago)
- Language: C
- Size: 55.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
XS::Closure::Example - It's example module for closure
# SYNOPSIS
use feature 'say';
use XS::Closure::Example;
my $i = 0;
my $c = make_closure($i);
say $c->(); # 0
$i++;
my $c_c = make_closure_c($i);
say $c_c->(); # 1
# DESCRIPTION
XS::Closure::Example
# LICENSE
Copyright (C) K.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
# AUTHOR
K