Use a fresh cons for %stream-null.
authorChris K. Jester-Young <cky944@gmail.com>
Sat, 6 Apr 2013 07:06:37 +0000 (03:06 -0400)
committerChris K. Jester-Young <cky944@gmail.com>
Sat, 6 Apr 2013 07:06:37 +0000 (03:06 -0400)
* module/srfi/srfi-41.scm (%stream-null): Use a fresh cons rather than
  a literal cons. You never know what peval constant-folding could do
  with the latter, either now or in the future.

module/srfi/srfi-41.scm

index edf95d7..6f73ce3 100644 (file)
 
 (define stream? stream-promise?)
 
-(define %stream-null '(stream . null))
+(define %stream-null (cons 'stream 'null))
 (define stream-null (stream-eager %stream-null))
 
 (define (stream-null? obj)