[squeak-dev] The Trunk: Multilingual-mt.259.mcz
Levente Uzonyi
leves at caesar.elte.hu
Sat Nov 27 08:30:18 UTC 2021
Hi Marcel,
Can you should me an example where these backstops actually make a
difference?
Levente
On Thu, 25 Nov 2021, commits at source.squeak.org wrote:
> Marcel Taeumel uploaded a new version of Multilingual to project The Trunk:
> http://source.squeak.org/trunk/Multilingual-mt.259.mcz
>
> ==================== Summary ====================
>
> Name: Multilingual-mt.259
> Author: mt
> Time: 25 November 2021, 11:28:53.961354 am
> UUID: 6e1246cc-66e2-9140-9e22-49ba1ebad024
> Ancestors: Multilingual-ul.258
>
> Adds some backstops to FileStream to avoid having to name "MultiByteFileStream" explicitely in your code. Just use "FileStream fileNamed:do:" etc. and rely on polymorphism.
>
> =============== Diff against Multilingual-ul.258 ===============
>
> Item was added:
> + ----- Method: FileStream>>detectLineEndConvention (in category '*Multilingual-accessing') -----
> + detectLineEndConvention
> + "Backstop. See MultiByteFileStream."
> +
> + ^ nil!
>
> Item was added:
> + ----- Method: FileStream>>lineEndConvention (in category '*Multilingual-accessing') -----
> + lineEndConvention
> + "See MultiByteFileStream and also String >> #withSqueakLineEndings."
> +
> + ^ #cr!
>
> Item was added:
> + ----- Method: FileStream>>lineEndConvention: (in category '*Multilingual-accessing') -----
> + lineEndConvention: aSymbolOrNil
> + "Ignore here. See MultiByteFileStream."!
>
> Item was added:
> + ----- Method: FileStream>>setConverterForCode (in category '*Multilingual-accessing') -----
> + setConverterForCode
> + "Backstop. See MultiByteFileStream."!
>
> Item was added:
> + ----- Method: FileStream>>wantsLineEndConversion: (in category '*Multilingual-accessing') -----
> + wantsLineEndConversion: aBoolean
> + "Backstop. See MultiByteFileStream."!
>
> Item was changed:
> ----- Method: MultiByteFileStream>>lineEndConvention: (in category 'accessing') -----
> lineEndConvention: aSymbol
> + "#cr, #lf, #crlf"
> +
> -
> (lineEndConvention := aSymbol) ifNotNil: [wantsLineEndConversion := true].
> self installLineEndConventionInConverter!
More information about the Squeak-dev
mailing list
|