"Serge D. Mechveliani" <[email protected]> writes:

| On Mon, Jan 30, 2012 at 09:05:09PM +0100, Waldek Hebisch wrote:
| > Serge D. Mechveliani wrote:
| > > 
| > > Please, 
| > > how to express the  newline  character?
| > > (char "\n"   does not work)
| > > 
| > > Where in docs it is explained?
| > 
| > There were no "official" method to produce newline charater.
| > I guess it is because initial developement of Axiom was
| > on system which did not use newlines in files, so all
| > text processing in Axiom operated on seqences of lines
| > (lines were obtained from operating system/Lisp).
| > 
| > The easiest method to produce newline is 'char(10)'.  I have
| > now added 'newline' function to 'Charater' so now this is
| > the official method.  Unfortunately, this works only in code,
| > there is no official syntax for newline character.
| > 
| 
| By "official syntax" you mean the Spad/Axiom language standard?
| And by "in code" you mean the FriCAS library?
| Will  newline  be added to "Browse", to the book?
| And it is desirable for it to have the same name and type as in other 
| Axiom branches.
| 
| Thanks to people,

newline has been part of OpenAxiom since November 2010 (therefore part
of OpenAxiom-1.4.0).  You can use it (and other character constants) in
both the library and the interpreter.  It is a constant, so you can
just write

    newline

without the '()'.  It (or char "\n") has been used in other projects
such as Arthur's server. 

The character constants are available from the Hyperdoc, therefore reachable
from "Browse".

-- Gaby

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to