@iftex
@finalout
@end iftex
-@comment $Id: scheme.texinfo,v 1.74 1999/08/04 01:42:54 cph Exp $
+@comment $Id: scheme.texinfo,v 1.75 1999/08/09 18:12:11 cph Exp $
@comment %**start of header (This is for running Texinfo on a region.)
@setfilename scheme.info
@settitle MIT Scheme Reference
@code{write-char}, except that it is usually much faster.
@end deffn
+@deffn {procedure+} write-substring string start end [output-port]
+@cindex string, output to port
+Writes the substring defined by @var{string}, @var{start}, and @var{end}
+to @var{output-port}, performs discretionary output flushing, and
+returns an unspecified value. This is equivalent to writing the
+contents of the substring, one character at a time using
+@code{write-char}, except that it is usually much faster.
+@end deffn
+
@deffn procedure write object [output-port]
@cindex expression, output to port
Writes a written representation of @var{object} to @var{output-port},
#| -*-Scheme-*-
-$Id: output.scm,v 14.19 1999/02/16 19:44:51 cph Exp $
+$Id: output.scm,v 14.20 1999/08/09 18:10:38 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
(output-port/write-string port string)
(output-port/discretionary-flush port)))
+(define (write-substring string start end #!optional port)
+ (let ((port
+ (if (default-object? port)
+ (current-output-port)
+ (guarantee-output-port port))))
+ (output-port/write-string port string start end)
+ (output-port/discretionary-flush port)))
+
(define (wrap-custom-operation-0 operation-name)
(lambda (#!optional port)
(let ((port
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.329 1999/06/21 03:47:29 cph Exp $
+$Id: runtime.pkg,v 14.330 1999/08/09 18:10:41 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
write
write-char
write-line
- write-string))
+ write-string
+ write-substring))
(define-package (runtime interrupt-handler)
(files "intrpt")
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.334 1999/06/21 03:47:25 cph Exp $
+$Id: runtime.pkg,v 14.335 1999/08/09 18:10:44 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
write
write-char
write-line
- write-string))
+ write-string
+ write-substring))
(define-package (runtime interrupt-handler)
(files "intrpt")