write/?
Output a number of arguments
write(TERM,....) -(i...)
'write(...)' (with an arity that can take any value) writes the given list of terms on the current output device.
Compatibility: LPA Win-Prolog (but stronger!), some rare Prologs(?).
Compatibility Notes:
G.I.S. Prolog's "write" is stronger than in other Prologs, since it accepts multiple (practically unlimited) arguments.
In most other Prolog interpretets and compilers, "write" is traditionally a 1-argument predicate, so that a statement like "write(this,' ',and,' ',2)" is a bug in most Prologs, including LPA Win-Prolog. E.g. Here is the error reported by LPA Win Prolog for a multiple-argument call of "write":
| ?- write(this,' ',dfgd).
! ----------------------------------------
! Error 20 : Predicate Not Defined
! Goal : write(this,' ',dfgd)
Example
write("\nYou", ' ', "must know"," this predicate already").