-
Notifications
You must be signed in to change notification settings - Fork 58
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
make get and set more Julian, and work with v2 #20
Labels
Comments
I'm gonna close this because we now support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be nicer to have
get
andset
defined regardless of the ZMQ version, and just throw an error if the functionality is not supported. (Presumably, in ZMQ v2,get(msg, ZMQ.MORE)
could just return 0 always, whereas trying to set the MORE flag totrue
would throw an exception).However, it would be more Julian to use
ref
andassign
for these functions, and to return the appropriate types. i.e. you should be able to domsg[ZMQ.MORE]
to get theZMQ_MORE
property (returning aBoolean
), andmsg[ZMQ.MORE] = true
to set it. (ZMQ.MORE
would be a singleton type, so Julia would know how to dispatch this).Actually, once Julia issue #1974 is fixed (@JeffBezanson tells me he is working on this), one could do
msg.more
etcetera, which would be the ideal Julian syntax.The text was updated successfully, but these errors were encountered: