Re: [Squeak-fr] Récupérer les commentaires d'une classe

Serge Stinckwich Serge.Stinckwich at info.unicaen.fr
Mer 13 Juil 19:29:51 CEST 2005


Le 13 juil. 05, à 19:14, Damien Cassou a écrit :

> Bonjour à tous,
>
> je cherche à récupérer les commentaires associés aux différentes
> classes.
>
> Par exemple, la classe Boolean a un commentaire qui commence par :
> "Boolean is an abstract class defining...".
>
> Savez-vous comment je peux faire cela ?

aClass firstPrecodeCommentFor: aSelector

Par exemple :
Behavior firstPrecodeCommentFor: #firstPrecodeCommentFor:

retourne :

'If there is a comment in the source code at the given selector that 
preceeds the body of the method, return it here, else return nil'

--                                                         oooo
Dr. Serge Stinckwich                                     OOOOOOOO
Université de Caen>CNRS UMR 6072>GREYC>MAD               OOESUGOO
http://purl.org/net/SergeStinckwich                       oooooo
Smalltalkers do: [:it | All with: Class, (And love: it)]   \  /
                                                             ##



Plus d'informations sur la liste de diffusion Squeak-fr