While statement

new topic     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C39AF0.3915E2B0
	charset="iso-8859-1"

Hello,
I have this routine in two programs. one runs ok. the other gets an error
message
" type_check failure, line is-1"
. I read in the documentation the short circuit  could  be involved. Is it 
involved and how does it work?
jvandal
===== code===========
 buffer = {}
 tries = 0
 countlines = 0
 clear_record()
 while 1 do
  line = gets(Handlers)
  if atom(line) then
   exit
  end if
  line[length(line)] = 32
  buffer = buffer & line
 end while

------=_NextPart_000_0007_01C39AF0.3915E2B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have this routine in two programs. one runs ok. 
the other gets an error message </FONT></DIV>
<DIV><FONT face=Arial size=2>" type_check failure, line is-1"</FONT></DIV>
<DIV><FONT face=Arial size=2>. I read in the documentation the short 
circuit&nbsp; could&nbsp; be involved. Is it&nbsp; involved and how does it 
work?</FONT></DIV>
<DIV><FONT face=Arial size=2>jvandal</FONT></DIV>
<DIV><FONT face=Arial size=2>===== code===========</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;buffer = {}<BR>&nbsp;tries = 
0<BR>&nbsp;countlines = 0<BR>&nbsp;clear_record()<BR>&nbsp;while 1 
do<BR>&nbsp;&nbsp;line = gets(Handlers)<BR>&nbsp;&nbsp;if atom(line) 
then<BR>&nbsp;&nbsp;&nbsp;exit<BR>&nbsp;&nbsp;end 
if<BR>&nbsp;&nbsp;line[length(line)] = 32<BR>&nbsp;&nbsp;buffer = buffer &amp; 

------=_NextPart_000_0007_01C39AF0.3915E2B0--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu