Hi,

Is there a way to do function dispatch on subtypes? For example, consider 
the following:

> abstract Furniture

> type Table <: Furniture end

> f(::Type{Furniture}) = 10

> f(Furniture)
10

> f(Table)
Error.....

How do I enable the same function to be called when I do f(Table)?


Thanks,
Vinuth.

Reply via email to