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

Extended type support #14

Closed
wants to merge 22 commits into from

Conversation

ramonmaruko
Copy link

My C is not really good, so please review this properly. Thank you.

@ramonmaruko
Copy link
Author

Bump. Any code reviews for this are very welcomed.

@CodeMonkeySteve
Copy link

Your code looks good, but it would be really nice if the interface could instantiate Ruby objects by type instead of Extension objects, e.g.:

class CustomType
  MessagePack.register_extension(42, self) 
  def self.from_msgpack(data)
    CustomType.new(...)
  end
end

@sardaukar
Copy link

+1 for a nicer interface, please

@ramonmaruko ramonmaruko reopened this Apr 12, 2015
@ramonmaruko
Copy link
Author

Sorry if it took me too long to implement ::register_extension. I was busy with other things.

@sardaukar
Copy link

Great work, thanks!

@tagomoris
Copy link
Member

My review results are:

  • ext type information should be for packer/unpacker instances, not runtime global

Now we should consider about JRuby implementation...

@ramonmaruko
Copy link
Author

Seems like this isn't needed anymore since #71 is already here.

@ramonmaruko ramonmaruko closed this Jul 4, 2015
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

Successfully merging this pull request may close these issues.

None yet

4 participants