The Trunk: Collections-mt.919.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-mt.919.mcz

commits-2
Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.919.mcz

==================== Summary ====================

Name: Collections-mt.919
Author: mt
Time: 15 October 2020, 2:27:14.853368 pm
UUID: 13747fbe-9c7e-2341-9a7a-36420923d5f3
Ancestors: Collections-mt.918

Complements System-mt.1180. See http://forum.world.st/Proposal-Resetting-pragma-preferences-via-nil-or-reset-message-td5123490.html

=============== Diff against Collections-mt.918 ===============

Item was changed:
  ----- Method: TranscriptStream class>>redirectToStdOut: (in category 'preferences') -----
+ redirectToStdOut: aBooleanOrNil
- redirectToStdOut: aBoolean
  "In setting up redirection, first remove all dependents that are stdout,
  which may include stale files from the last session.  Then add a dependency
  only if asked to redirect to stdout. Blithely doing
  Transcript removeDependent: FileStream stdout
  raises an error if stdout is unavailable."
  Transcript dependents do:
  [:dep|
  (dep isStream and: [dep name = #stdout]) ifTrue:
  [Transcript removeDependent: dep]].
+ RedirectToStdOut := aBooleanOrNil.
+ self redirectToStdOut ifTrue:
- (RedirectToStdOut := aBoolean) ifTrue:
  [Transcript addDependent: FileStream stdout]!