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

Reorder map initialization so 'point' is correctly interpreted #1

Merged
merged 1 commit into from Apr 20, 2015

Conversation

loganbu
Copy link

@loganbu loganbu commented Apr 19, 2015

When initializing the type map, the specializations were registered before all of the generic mappings.

When the base class registered the base mappings,
it registered "int" as (^int). Later, when it went to look up type 'point',
it would match this, and think that 'point' was an integer.

This changes it so that the specializations are registered after the generic
ones are, so that when it looks up 'point', it finds these specializations,
instead of finding 'int'

…efore all

of the generic mappings.  When the base class registered the base mappings,
it registered "int" as (^int).  Later, when it went to look up type 'point',
it would match this, and think that 'point' was an integer.

This changes it so that the specializations are registered after the generic
ones are, so that when it looks up 'point', it finds these specializations,
instead of finding 'int'
fjl82 added a commit that referenced this pull request Apr 20, 2015
Reorder map initialization so 'point' is correctly interpreted
@fjl82 fjl82 merged commit 7c31155 into fjl82:master Apr 20, 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

2 participants