English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
why aren't methods visible inside class definition
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-12-26 (09:45)
From: henri dubois-ferriere <henridf@g...>
Subject: Re: [Caml-list] why aren't methods visible inside class definition
> Methods are seen as similar to records fields, so you must be explicit
> about the object when calling them.
> Also, methods may have no arguments, while functions must have at
> least one.
> Last, this distinction lets you use the same name for a field and a
> method. This is sometimes comfortable.

for a *value* (not field) and method i suppose 

henri