Passing Dictionary from Julia to C function using ccall
74 views
Skip to first unread message
Alexander Lyapin
unread,
Nov 22, 2016, 2:18:25 AM11/22/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to julia-users
Is there way to pass Dictionary from Julia to C function using ccall???
I have to divide all dictionaries for subarrays and then send them to C... this is really long and leads to huge syntax. Is there way to pass whole dictionary at once?
Thank you
Yichao Yu
unread,
Nov 22, 2016, 8:08:45 AM11/22/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Julia Users
Hmmm, I thought you can't start a new thread on julia-users anymore....
You can just pass a pointer to the dict to C with `Any` as argument
type. This works for any types.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Julia Users
I'm not sure what's up with that – the group settings look correct (only manager, owners can start new threads), but Google Groups has confusing settings, doesn't always do what it's configured to do and is otherwise generally unreliable, so who knows? These are among the reasons we're switching away. Please use discourse.julialang.org – thanks!