Version 1 by komaz
on Nov 09, 2010 10:31.

compared with
Current by komaz
on Nov 09, 2010 10:46.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
}
{code}
# In _method mode_, by involving default param values, one more interesting feature can be enabled (synthetic example):
{code}
class Sorter
{
@DispatchFunc { name = "sort" }
Obj[] sortEmpty(Obj[] list := Obj[,])

@DispatchFunc { name = "sort" }
Obj[] sortNonEmpty(Obj[] list)

Obj[] sort(Obj[] list) { Dispatch<|sort|>.call([list]) }
}
{code}