caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Remi Vanicat <remi.vanicat@laposte.net>
To: caml-list@inria.fr
Subject: Re: [Caml-list] a class as method parameter...
Date: Fri, 28 May 2004 16:52:28 +0200	[thread overview]
Message-ID: <87k6ywwqmr.dlv@vanicat.homelinux.org> (raw)
In-Reply-To: <1085754814.6826.250.camel@pelican.wigram> (skaller@users.sourceforge.net's message of "29 May 2004 00:33:34 +1000")

skaller <skaller@users.sourceforge.net> writes:

> On Fri, 2004-05-28 at 19:25, Michael wrote:
>> Hi,
>> 
>> I don't understand why this doesn't work:
>> 
>> class one = object
>>   val name = "test"
>>   method name = name
>> end;;
>
> What kind of weirdness is this? A val called name
> and also a method called name??

method and val don't live in the same domain name. There is no
problem in the point of vue of ocaml (and semantically, they are the
same here, so it is not too much a problem for code's users).
-- 
Rémi Vanicat

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2004-05-28 14:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-28  9:25 Michael
2004-05-28 14:33 ` skaller
2004-05-28 14:49   ` Michael
2004-05-28 16:43     ` skaller
2004-05-28 14:52   ` Remi Vanicat [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k6ywwqmr.dlv@vanicat.homelinux.org \
    --to=remi.vanicat@laposte.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).