-
Notifications
You must be signed in to change notification settings - Fork 25
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
initFromCL doesn't work with ref object
#118
Comments
Ok. Any thoughts on how to make it work? Does |
untried, but maybe something like: proc process[T](dfl: T) =
when T is ref | ptr:
doAssert dfl != nil # could handle this too maybe
process(dfl[])
elif T is object:
sameAsBefore() |
|
E.g., it looks like we could do a branch after of ntyRef: ti = ti[0].getTypeImpl[2] That actually makes your example compile and even generates the correct help message! Could probably do similar for |
I could be more careful about checking that the |
@c-blake wonderful, thanks! |
The text was updated successfully, but these errors were encountered: