[ENH]browserNagIfNoClassComment (v5)

Karl Ramberg karl.ramberg at chello.se
Wed Oct 29 11:57:11 UTC 2003



Markus Gaelli wrote:
> 
> >
> >
> > The snag with both is that the comments are in read only
> > mode but in 'comment mode'.
> > I'm not sure how to fix that.
> >
> 
> I did a little hack, which should do the trick...
> though not as I naively thought by enhancing
> Class with something like >> subclass: '' instVarNames: '' (...)
> comment: ''
> 
> The reason is, that the Class >> classComment: '' expects a text and not
> a string. (' in strings are ugly to write and read...)
> 
> So I hacked
> Browser >> defineClass: defString notifying: aController
> 
> which is already to long....:-(
> 
> I still reformated it like it could be a method sent to class,
> maybe this is missleading?
>  
> Attention: I did not look into timestamps issues of the comment, so
> this might be wrong.
> Also the comment does not update while on the class side...
> Also no tests.
> 
> So there is room for improvement... ;-)
>
Thanks, this is starting to look good. 
 
I fixed a issue with a single quote being added to the end of each comment.

Karl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NagIfNoClassComment.9.cs.gz
Type: application/octet-stream
Size: 2240 bytes
Desc: Unknown Document
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20031029/b628f83d/NagIfNoClassComment.9.cs.obj


More information about the Squeak-dev mailing list