Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Overload &{} #4

dolmen opened this Issue September 18, 2012 · 2 comments

2 participants

Olivier Mengué Alessandro Ghedini
Olivier Mengué

The current way to call FFI::Raw exported functions is to call the call method on them:

say $cos -> call(2.0);

It would be cleaner to make the object similar to a CODE ref by overloading &{}:

say $cos -> (2.0);
Alessandro Ghedini

Sounds like a good idea. I'll have a look at this (if you want to provide a patch you are welcome of course).

Alessandro Ghedini ghedo closed this in 327f1d2 September 19, 2012
Alessandro Ghedini

Done. The code looks a little bit ugly right now though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.