Hi Mathieu,
Good bug find.
A good help would be to write it up as a mantis
report.
http://bugs.impara.de/login_page.phpIf you dont have an account you can get one.
-----
When you write up the report:
Describe how to get the bug to come up.
As to your fix.
It needs to pass a test such as:
crayons := {
Color red .
Color green .
Color blue .
Color yellow .
Color cyan .
Color magenta .
Color white .
Color black .
Color gray .
Color orange .
} .
crayons collect: [ :c | c printHtmlString ]
When I substituted your suggestion for
Color>>printHtmlString I got:
#('FF00' '0FF0' '00FF' 'FFFF0' '0FFFF' 'FF0FF'
'FFFFFF' '000' '7F7F7F' 'FF990')
which I dont think will work for html.
-----
Also for fileouts you can select to fileout just the
one method. (You have to call up the menu over the
selected method instead of the class) I did not try
filing in the full class in my above test.
Again you found a real bug. I hope you will follow it
thru.
Yours in service, -- Jerome Peace.
>mathieu mathk.sue at gmail.com
>Tue Jun 13 21:35:16 UTC 2006 wrote:
>Hello
>
>I find a bug in Color class
>
>Does it not better like this?:
>
>Color>>printHtmlString
> "answer a string whose characters are the html
representation
> of the receiver"
> ^ (self red * 255) asInteger printStringHex , (self
green * 255)
>asInteger printStringHex , (self blue * 255)
asInteger printStringHex
>
>
>I have make the change in the file out.
>
>Best regards,
>Mathieu
<snipped class file out.>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com