Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support exporting zmq constants directly from ZMQ::FFI #24

Closed
calid opened this issue Jan 7, 2016 · 0 comments
Closed

support exporting zmq constants directly from ZMQ::FFI #24

calid opened this issue Jan 7, 2016 · 0 comments

Comments

@calid
Copy link
Member

calid commented Jan 7, 2016

so:

use ZMQ::FFI qw(ZMQ_REQ ZMQ_REP);

instead of

use ZMQ::FFI;
use ZMQ::FFI::Constants qw(ZMQ_REQ ZMQ_REP);

Rationale
you always need one or more zmq constants, so having ZMQ::FFI implicitly import and expose available ZMQ::FFI::Constants makes sense as a convenience feature. Can still use ZMQ::FFI::Constants independently if desired.

@calid calid closed this as completed in 00e08d2 Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant