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

Move entity mapping for void, object and duck to a virtual method #81

Merged
merged 1 commit into from
Dec 16, 2013

Conversation

drslump
Copy link
Collaborator

@drslump drslump commented Dec 13, 2013

In BooJs I want to map System.Object to a custom type. Since ReflectionTypeSystemProvider maps object, duck and void in its constructor is not possible to apply a custom mapping for them in descendant implementations because the MemoizedFunction cache complain that the key is already defined.

This patch moves the mapping to a virtual Initialize method that can be overridden in order to configure custom mappings for any type.

bamboo added a commit that referenced this pull request Dec 16, 2013
Move entity mapping for void, object and duck to a virtual method
@bamboo bamboo merged commit 224e4bf into boo-lang:master Dec 16, 2013
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.

2 participants