Newsgroups: comp.lang.dylan
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.alpha.net!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!swrinde!pipex!sunic!sunic.sunet.se!news.lth.se!news.lu.se!venus.ling.lu.se!user
From: Johan.Dahl@ling.lu.se (Johan Dahl)
Subject: local methods??
Message-ID: <Johan.Dahl-1203950332470001@venus.ling.lu.se>
Sender: news@nomina.lu.se (USENET News System)
Nntp-Posting-Host: venus.ling.lu.se
Organization: Lingvistics & Phonetics, Univ. of Lund, Sweden
Date: Sun, 12 Mar 1995 02:32:47 GMT
Lines: 31

This may be a stupid question but shouldn't this program work. I have
looked thru the DIRM and I cant find any place that says something about
dispatching on local methods.

I have tested this small and VERY useful program on both Mindy and Marlais
and both seems to ignore or rather write over the first method is defined.
So I get error messages like "Argument error..."

define method foo(a)
   local method fum(b == #f)
      0;
   end method;
   
   local method fum(b :: <integer>)
      b * 2;
   end method;
   
   fum(a);
end method;

I wonder if this is a limitation in the implementations or not allowed in
the language.

      Thankyou for any help.

      Johan Dahl.
-- 
Johan Dahl Johan.Dahl@ling.lu.se
Department of Lingvistics and Phonetics
University of Lund
Sweden
