I don’t know offhand how to do this, but I’d look at the code for xdump, which 
shows that the necessary introspection operations exist:

Foo::DataType  <: Any
  a::Int64::DataType  <: Signed
  b::Float64::DataType  <: FloatingPoint

 — John

On Jan 17, 2014, at 10:16 AM, Simon Byrne <[email protected]> wrote:

> I want to define a new composite type with exactly the same fields as another 
> type. Is there an easy way to do this? The original type is not parametric. 
> 
> Alternatively, is there a way I can figure out the type of a field of a 
> composite type Foo without constructing an object of type Foo?
> 
> -Simon

Reply via email to