-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Nullable with subtype #94
Comments
PS Otherwise, though, thanks for an amazingly useful package. |
This pattern, I wonder if you want to be working with a parametric type for Container (e.g. |
but the code i posted works in 0.4 (i'm using a 6 days old checkout).
(i can fix my code in various ways, and it may not be great how it is, but i was raising this issue because the code above works in 0.4, but not in 0.3, even when Compat is used). |
maybe my hamfisted attempt at guessing how julia works is misleading. ignore the final part of my first post if it helps. |
I think something has changed that I don't fully understand in either (a) how type parameters work when doing dispatch or (b) the way that You can raise the same problem you're hitting without involving user types by executing julia> @which convert(Nullable{Integer}, 1)
convert(T,x) at base.jl:13 with Julia 0.4: julia> @which convert(Nullable{Integer}, 1)
convert{T}(::Type{Nullable{T}}, x::T) at nullable.jl:15 |
huh. well i've been poking through issues and changes and finally realised you wrote this stuff, so i am giving up :) |
I'm sure someone who understands the issues involved better than I do will chime in. While we wait, I wonder if redesigning things to avoid having a type |
That does seem relevant. And I do find the covariant matching confusing. |
Implement broadcasting for DataArrays/PooledDataArrays
I am having a problem when I assign a value to a Nullable which it a sub-type of the type contained by the Nullable. This works in 0.4, but not with Compat.
Here is the problem:
However, I have no idea how you solve this because:
The text was updated successfully, but these errors were encountered: