Thanks for that pointer! Not a computer scientist nor even a very good coder, 
but I just learned a bit more how julia works internally.

I did the xdump and saw the AST (learned what that is too)

xdump(:(type T X; Y; Z; end)) gives 

Expr 
  head: Symbol type
  args: Array(Any,(3,))
    1: Bool true
    2: Symbol T
    3: Expr 
      head: Symbol block
      args: Array(Any,(6,))
        1: LineNumberNode 
          file: Symbol In[7]
          line: Int64 1
        2: Symbol X
        3: LineNumberNode 
          file: Symbol In[7]
          line: Int64 1
        4: Symbol Y
        5: LineNumberNode 
          file: Symbol In[7]
          line: Int64 1
        6: Symbol Z
      typ: Any::DataType  <: Any
  typ: Any::DataType  <: Any

for fun I tried eval(:(type T X; Y; Z; end)) which results in T becoming 
available

typeof(T) -> DataType

and 

xdump(T) gives:

T::DataType  <: Any
  X::Any::DataType  <: Any
  Y::Any::DataType  <: Any
  Z::Any::DataType  <: Any



so something happened but not what I need to accomplish. Any more pointers 
would be welcome, but I'll dig into the documentation too....

Jon

Reply via email to