-
Notifications
You must be signed in to change notification settings - Fork 66
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
using KDtree as a type? #32
Comments
Don't mind, i'm using ::Any right now. |
You could have type pgraph{T <: KDTree}
kdtree::T
end |
This was just an example, pgraph is actually a little bit longer than this and i might reserve the "top-level type argument" (don't know how {T <: X} is called...) for data, not the KDTree representation. The initial example worked for some time... |
Yes, The new version (#29) changes the way the KDTree is parameterized. It is now a sufficiently complex type that I would recommand just adding an extra parameter that is |
I've just seen the error the first time, i used (some time ago...) KDTree in a type definition
which is later on instantiated with
and p1.kdtree then given a value when applicable.
How to do that now?
The text was updated successfully, but these errors were encountered: