[comp.lang.prolog] why do i need an extra carriage return?

imlah@canon.co.uk (Bill Imlah) (04/30/91)

imlah@canon.co.uk (me) writes crap:

>    read_line(L):-
	<rest deleted>


It should be:

   read_line(L):-
	get0(C),
	get_rest(C,L).

   get_rest(10,[]):-
	!.
   get_rest(C,[C|L]):-
	read_line(L).

What an **IDIOT**.
  
Ouch!  I just burnt myself.

---------------------------------------------------------
Bill Imlah                             imlah@canon.co.uk
-- The best platform NLIs work on is the 35mm projector