Top
Back: 4.6 link
Forward: 4.6.2 link expressions
FastBack: 4 Data types
FastForward: 5 Functions and system variables
Up: 4.6 link
Top: 1 Preface
Contents: Table of Contents
Index: F Index
About: About This Document

4.6.1 link declarations

Syntax:

link name = string_expression ;

Purpose:

defines a new communication link.

Default:

none

Example:
  link l=":w example.txt";
  int i=22;          // cf. ASCII links for explanation
  string s="An int follows:";
  write(l,s,i);
  l;
→ // type : ASCII
→ // mode : w
→ // name : example.txt
→ // open : yes
→ // read : not ready
→ // write: ready
  close(l);          //
  read(l);
→ An int follows:
→ 22
→ 
  close(l);

Top Back: 4.6 link Forward: 4.6.2 link expressions FastBack: 4 Data types FastForward: 5 Functions and system variables Up: 4.6 link Top: 1 Preface Contents: Table of Contents Index: F Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texinfo.