From: Adam Majewski on
Hi,
I try to make complex number :
(defvar s)
(setq s 600)

(defvar pos)


(setq pos #c(s 100))

and get error :

;Argument REALPART is not a REAL: S
; [Condition of type SIMPLE-TYPE-ERROR

but when change last statment to :

( setq pos #c(600 100))

all is good.

I do not know why .

Adam
From: Frode V. Fjeld on
Adam Majewski <adammaj1(a)o2.pl> writes:

> (setq pos #c(s 100)) and get error :

The function for creating a complex is called COMPLEX. That is,
"(complex s 100)" should do what you want. The #c reader macro will not
(can not) evaluate its parameters.

--
Frode V. Fjeld

From: Adam Majewski on
Dnia Mon, 05 Jul 2010 23:15:12 +0200, Frode V. Fjeld napisaƂ(a):

> Adam Majewski <adammaj1(a)o2.pl> writes:
>
>> (setq pos #c(s 100)) and get error :
>
> The function for creating a complex is called COMPLEX. That is,
> "(complex s 100)" should do what you want. The #c reader macro will not
> (can not) evaluate its parameters.

Thx for answer.

Adam