I'm trying to do sth that I'm not sure it's doable in Julia (and if it is, I am not sure it is good Julia programming practice). Is it possible to parse and evaluate some code from an arbitrary string? For example, if I have the string "atype"*".args[2]"^2, is it possible somehow to evaluate the corresponding code atype.args[2].args[2] in order to access the nested field of the atype array? Sth along the lines @eval symbol("atype"*".args[2]"^2) or @eval $symbol("atype"*".args[2]"^2) is apparently wrong coding.
As side-questions (sorry to trouble you folks with several questions, just getting to understand how to do metaprogramming in Julia):
* is there a Julia function that takes an object as argument and returns a string with the name of the object? As a continuation of the above example, I am looking for a "name" function along the lines name(atype) so as to get back the string "atype".
* I was looking at the function _jl_pre_exec in base/process.jl as a means of understanding how Julia pointers work and noticed that C_NULL is the last element of ptrs... what does C_NULL do - why is it needed?