Top
Back: 4.17 string
Forward: 4.17.2 string expressions
FastBack: 4. Data types
FastForward: 5. Functions and system variables
Up: 4.17 string
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

4.17.1 string declarations

Syntax:

string name = string_expression ;
string name = list_of_string_expressions ;

Purpose:

defines a string variable.

Default:

"" (the empty string)

Example:
 
  string s1="Now I know";
  string s2="how to encode a \" in a string...";
  string s=s1+" "+s2; // concatenation of 3 strings
  s;
→ Now I know how to encode a " in a string...
  s1,s2;   // 2 strings, separated by a blank in the output:
→ Now I know how to encode a " in a string...

Top Back: 4.17 string Forward: 4.17.2 string expressions FastBack: 4. Data types FastForward: 5. Functions and system variables Up: 4.17 string Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.