BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to return a coderef (for an iterator) from an XS function. I haven't a clue how to go about it.
Is it even possible? Does anyone know of any existing examples?
The only notion that crosses my mind so far is using eval_pv() or eval_sv() to bring that iterator into existence.
Better thoughts?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (XS): returning an iterator.
by salva (Canon) on Sep 23, 2010 at 09:19 UTC | |
by BrowserUk (Patriarch) on Sep 23, 2010 at 09:45 UTC | |
by salva (Canon) on Sep 23, 2010 at 10:17 UTC | |
|
Re: (XS): returning an iterator.
by ikegami (Patriarch) on Sep 23, 2010 at 03:19 UTC | |
|
Re: (XS): returning an iterator.
by Anonymous Monk on Sep 23, 2010 at 02:45 UTC |