Up to top level
compiler bugs   dustin's bugs   fixed   incoming   nonproblems   tests   website bugs  

Logged in as guest

Viewing fixed/10
Full headers

From: hlub@knoware.nl
Subject: string concatenation broken?
Compose reply
Download message
Move To:
1 replies: 1
1 followups: 1

Private message: yes  no

Notes:

Notification:


Date: Sat, 8 Jan 2000 04:34:23 -0600 (CST)
From: hlub@knoware.nl
To: tjbugs@rustler.cs.uchicago.edu
Subject: string concatenation broken?
Full_Name: Hans Lub
Version: 1.0-b29
OS: linux 2.0.34
Submission from: cache-utr1.casema.net (195.96.97.236)


~src/teyjus-1.0-b29 > tjsim
Welcome to Teyjus
(...)
[toplevel] ?- X is "bon"^" voyage".

The answer substitution:
X = "bonbon"

(I tried 1.0-b27 as well, but that didn't make any difference)

Reply 1

Resend
From: Dustin James Mitchell <tjbugs@rustler.cs.uchicago.edu>
To: hlub@knoware.nl
Subject: Re: string concatenation broken? (PR#10)
Date: Sun Jan  9 13:46:48 2000
CC: teyjus@cs.uchicago.edu
Wow, we missed that one because gcc interprets C's postincrement operator in a
manner which differs slightly from that of Sun's compiler.  Oops!

Anyway, the bug will be fixed in version 1.0-b30, but in the meantime, the
following
patch will fix it up:

Put this message in the file 'concat_patch' and execute the command:

teyjus-1.0-b29% patch -p0 < concat_patch


-----

Index: simulator/builtins/evalexp.c
===================================================================
RCS file: /teyjus/lpcode/simulator/builtins/evalexp.c,v
retrieving revision 1.9
diff -r1.9 evalexp.c
328,329c328,329
<          return string_concat(eval_string_aux(argvec++),
<                               eval_string_aux(argvec));
---
>          return string_concat(eval_string_aux(argvec),
>                               eval_string_aux(argvec + 1));                
 



Thanks for letting us know!
-Dustin


Followup 1

Compose reply
Download message
From: Hans Lub <hlub@knoware.nl>
Date: Sun, 9 Jan 2000 22:25:27 +0100 (MET)
To: Dustin James Mitchell <tjbugs@rustler.cs.uchicago.edu>
Subject: Re: string concatenation broken? (PR#10)
 > <          return string_concat(eval_string_aux(argvec++),
 > <                               eval_string_aux(argvec));
 > ---
 > >          return string_concat(eval_string_aux(argvec),
 > >                               eval_string_aux(argvec + 1));     

Yes, ik works OK now! It would be really nice to have a ++ operator in 
teyjus too ;-)

Anyway, thanks for your speedy reaction!

Hans.

--
Hans Lub                                     Tel/fax: +31 (0)30 2899249
Dolomieten 74      NL 3524 VH Utrecht           E-post: hlub@knoware.nl



Up to top level
compiler bugs   dustin's bugs   fixed   incoming   nonproblems   tests   website bugs  

Logged in as guest


[ Home | Overview | Download | Language Documentation | Bug Tracking | Implementation Documentation | Links ]