-
Notifications
You must be signed in to change notification settings - Fork 32
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
#162 #145 #165 - add macro to restore old array type behavior #236
Conversation
3928384
to
25338d6
Compare
25338d6
to
693fe8b
Compare
1949952
to
300eea3
Compare
i fail to see what is the logic for these blocks: ...
# if the array set type has already been defined, create combinations
if isdefined(:array_constructor) &&
method_exists(array_constructor, (Type{$SET},))
@eval(@array_neutral($(esc(SET)),
$(esc(NEUT)),
array_constructor($(esc(SET)))))
elseif isdefined(:is_array_constructor) &&
method_exists(is_array_constructor, (Type{$SET},))
@eval(@array_neutral($(esc(SET)),
$(esc(NEUT)),
$(esc(SET))))
end why is there an |
This is needed so that you can use the macros |
ok
i guess my confusion arises from the fact that both |
Okay, I admit that it is overengineered :) We have @neutral(MinkowskiSum, ZeroSet)
@neutral(MinkowskiSumArray, ZeroSet) Those calls to the macro should have a slightly different behavior. I use the two functions to detect which one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright, thanks for the details!
Closes #162 and closes #145 and closes #165.