Article View: fj.mail-lists.reduce
Article #9Re: loop with out
From: Herbert Melenk
Date: Mon, 07 Sep 1992 18:19
Date: Mon, 07 Sep 1992 18:19
31 lines
1671 bytes
1671 bytes
>
> Who knows how to construct the loop with output files.?
> In the loop in the every step the new output file should be opened.
> The following example is wrong but it describes what I want
>
> for k:=1 : 1000 do << out "**/f(k)";sentence;shut "**/f(k)";>>;
>
> ***************************************************************
> Z.Popowic
>
The following model should work if you have REDUCE under PSL
(I know, you have!):
share j;
for j:= .......
<<out lisp bldmsg("/tmp/hugo.%w",j);
do something
shut lisp bldmsg("/tmp/hugo.%w",j);
>>;
The PSL function "bldmsg" allows to fill a string with format
slots, which are given by %w . In order to pass the value of j
from algebraic mode to symbolic mode you better declare the variable
j share (allthough that might be superfluous in some cases).
--
Herbert Melenk
Konrad-Zuse-Zentrum fuer Informationstechnik
Heilbronner Str 10, D 1000 Berlin 31, Germany
e-mail: melenk@sc.zib-berlin.de
Technical Details
Message-ID:
<9209071819.AA10814@hilbert.rand.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!ccut!hearn@hilbert.rand.orgReferences:
<9209071524.AA10291@hilbert.rand.org>; from "Z.Popowicz" at Sep 07, 92 8:24 amShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!darwin.sura.net!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!ccut!hearn@hilbert.rand.org Return-Path: <hearn@hilbert.rand.org> Message-ID: <9209071819.AA10814@hilbert.rand.org> From: herbert@dagobert.zib-berlin.de (Herbert Melenk) Subject: Re: loop with out Original-To: ZIEMEK@plwrtu11.BITNET (Z.Popowicz) Original-Cc: reduce-forum@rand.org References: <9209071524.AA10291@hilbert.rand.org>; from "Z.Popowicz" at Sep 07, 92 8:24 am Date: Mon, 07 Sep 92 11:19:45 -0700 Sender: hearn@rand.org Newsgroups: fj.mail-lists.reduce Distribution: fj Sender: news@ccut.cc.u-tokyo.ac.jp Approved: fj.mail-lists.reduce@ccut.cc.u-tokyo.ac.jp Lines: 32