Creating *many* files.
Andreas.Raab at gmx.de
Andreas.Raab at gmx.de
Wed Nov 20 01:11:53 UTC 2002
Because when you have classes Foo and Bar both implementing #mumble, then
A fileOutSelector: #mumble.
B fileOutSelector: #mumble
both try to create mumble.st and the second time it already exist.
- Andreas
> Just for fun, I tried
>
> Smalltalk allClassesDo: [ :clz |
> clz methodsDo: [ :sel |
> clz fileOutMethod: sel selector
> ].
> ].
>
> After 300-2500 files created, an Exception is thrown, saying 'Please
> close this to abort file opening' (StandardFileStream
> class>>fileExistsUserHandling:). Why?
>
> Regards, Markus
>
> P.S.: To test it, I patched ClassDescription
> class>>fileOutMethod:asHtml: as follows:
> (selector copyReplaceAll: ':' with: ''). to
> (selector copyReplaceAll: ':' with: '§').
>
> --
> http://reauktion.de/archer/
>
>
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
More information about the Squeak-dev
mailing list
|