🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.applic
Article #19

Bug in Berkeley FP primitives

#19
From: ucbvaxbaden
Date: Fri, 05 Feb 1982 17:30
20 lines
759 bytes
I recently discovered a conceptual bug in the code for the append left (apndl)
and append right primitivies.  For those who have the FP interpreter, you
should replace the functions apndl$fp and apndr$fp in the file prim_fp.l
by the following:

(defun apndl$fp (x)
  (cond ((and (dtpr x) (eq 2 (length x)) (listp (cadr x)))
	 (cons (car x) (cdr x)))
	(t (*throw 'bottom$up '?))))


(defun apndr$fp (x)
  (cond ((and (dtpr x) (eq 2 (length x)) (listp (car x)))
	 (append (car x) (list (cdr x))))
	(t (*throw 'bottom$up '?))))


Enjoy,

Scott Baden
Technical Details
Message-ID: <anews.Aucbvax.6089>
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!baden

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!baden
From: ucbvax!baden
Newsgroups: net.applic
Subject: Bug in Berkeley FP primitives
Date: Fri, 05 Feb 1982 17:30:29 +0000
Message-ID: <anews.Aucbvax.6089>