[erlang-questions] return type spec

Kostis Sagonas <>
Thu Oct 13 19:36:41 CEST 2011


On 10/13/11 19:42, Joel Reymont wrote:
> Is there a way to say that the return of this function is that of Mod:Fun, e.g. supervisor:start_child?

The only way is if the 'supervisor' module exports a type 
start_child_ret() which is the return type of start_child and then you 
can use it as a remote type in your module with the notation:

	supervisor:start_child_ret()

Kostis



More information about the erlang-questions mailing list