[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are all functions multi-methods?



Steven Shaw <steven_shaw@iprimus.com.au> wrote:
>
> In Dylan are all functions multimethods or can you define normal function,
> too?

There are three ways. 

  define function foo(x)
    x + x
  end;
  
  begin
    let foo = method(x) x + x end;
    // ...
  end;  
  
  begin
    local method bar(x) x + x end;
    // ...
  end;


-- 
Neel Krishnaswami
neelk@alum.mit.edu