Re: Writing to files
jon klein <[email protected]> Wed, 10 Aug 2005 10:00:33 -0400
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Aug 10, 2005, at 7:45 AM, Martyn Amos wrote:
> Folks,
>
> I have got the CLI version of Breve working under XP and Cygwin. I
> am trying
> to capture the output of the simulation to a file, so that I can
> automate the
> (many) test runs that I need to carry out. However, the output of a
> straight
> print doesn't seem to be captured if I redirect the output to a
> file. So, I
> have tried to dump the locations and sizes of various objects to a
> file (see
> below). However, when Breve gets to this routine it complains about
> not being
> able to convert vectors to strings.
> it write-line text ((thing get-location)).
In version 2.2, breve does not automatically do the conversion to
strings, as
you note. This has already been fixed for version 2.3, but in the
meantime,
the workaround is to simply embed a vector variable in a string for
formatting,
as in the example below:
location (vector).
location = (thing get-location).
it write-line text "$location".
- jon klein
_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve