Custom Query (1030 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (202 - 204 of 1030)

Ticket Resolution Summary Owner Reporter
#817 invalid inline notinline Frank
Description

What I was trying to do is to declare a function inline. That function has a macro inside. Depending on whether I declaim it inline or notinline I get two different outcomes.

Well I assume that we always should get the same outcome (semantically) independent of whether we declaim something inline or notinline.

Here's a demo:

(in-package :cl-user)

(defpackage :test
  (:use :cl))

(in-package :test)

(defmacro foo ()
  `(funcall ',(intern "FOOBAR")))

(defun foobar ()
  42)

(declaim (inline bar))
(defun bar ()
  (foo))

(in-package :cl-user)

(defun busted ()
  (test::bar))

;; Just for information...
(find-symbol "FOOBAR")			; => FOOBAR, :INTERNAL

;; Error!
(busted)

;;; Lets try it with bar not being inlined.
;;; =======================================

(in-package :test)

(declaim (notinline bar))
(defun bar ()
  (foo))

(in-package :cl-user)

(unintern 'foobar)			; GC that

(defun busted ()
  (test::bar))

;; Runs fine this time.
(busted)

;; Just for information...
(find-symbol "FOOBAR")			; => NIL, NIL

#305 fixed initialize-instance bug for classes with lots of slots Gary Byers Satyaki Das
Description

The bug is exhibited in the following test code. To run it save it to a file, load it and then evaluate the TEST-IT function. I have tested this with the binary x8664 version for 1.2-rc1.

Basically I am generating a class called BAR with 600 direct slots which derives from FOO with the BAR-GENERATOR macro. If BAR has 6 slots, then the test case works as it should.

;;; Start of test case

(in-package :cl-user)

(defclass foo ()

((foo-slot :accessor foo-slot)))

(defmacro bar-generator ()

`(defclass bar (foo)

,(loop for i from 0 to 600

for slot = (intern (format nil "BAR-SLOT-~A" i)) collect `(,slot :initform ,i))))

(bar-generator)

(defmethod initialize-instance :after ((x foo) &key)

(setf (foo-slot x) 42))

(defun test-it ()

(make-instance 'bar))

;;; End of test case

#1009 fixed initGlut is called with incorrect parameters in examples/opengl-ffi.lisp Hans-Martin
Description

the function initGlut() must be called with a pointer to a variable containing argc and a pointer to argv. Instead, it is being called with a pointer to a pointer to argv (line 45 in examples/opengl-ffi.lisp). Simplest fix is to remove the creation and initialization of argvp, and to change line 45 to read (#_glutInit argcp argv)))

Cheers, Hans-Martin

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.