FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version

stream-package

Arguments: cg-stream

Returns the package in which unqualified symbols will be read from and printed to in cg-stream, which should be a cg-stream.

An application may call (setf stream-package) to declare what the package of a cg-stream is. Then whenever certain Common Graphics functions are called that may do a Lisp read on a string that is associated with the cg-stream (or a Lisp write on an arbitrary Lisp object), then *package* will be bound to the stream-package of the stream at that time.

In particular, some methods of selected-symbol and selected-form use the stream-package when reading from strings, and the paste-selection method for text-edit-pane uses it when printing Lisp objects. Other exported Common Graphics functions may call these functions, and the IDE does as well.

The value passed to (setf stream-package) may be either a package object, a package name, or nil to indicate no associated package. When nil, no rebinding of *package* is done. The default stream-package is nil.


Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version