🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #2074

Re: why do i need an extra carriage return?

#2074
From: Bill Imlah
Date: Tue, 30 Apr 1991 14:03
25 lines
896 bytes
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
 
Technical Details
Message-ID: <1991Apr30.140351.11000@canon.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mcsun!ukc!canon!imlah
References: <9104262300.AA24421@thunder.LakeheadU.Ca> <1991Apr29.102537.12322@canon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!mcsun!ukc!canon!imlah
From: imlah@canon.co.uk (Bill Imlah)
Newsgroups: comp.lang.prolog
Subject: Re: why do i need an extra carriage return?
Message-ID: <1991Apr30.140351.11000@canon.co.uk>
Date: 30 Apr 91 14:03:51 GMT
References: <9104262300.AA24421@thunder.LakeheadU.Ca> <1991Apr29.102537.12322@canon.co.uk>
Organization: Kenny's Fish Bar (Turbot with a Smile)
Lines: 25