trace logic

Notices and updates
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

trace logic

Post by Dmi »

Code: Select all

dmi@stone:~$ cat >a.lsp
(define (func1)
 (trace true)
 (print "in func1"))

(define (func2)
 (print "in func2"))

(func1)
(func2)
dmi@stone:~$ newlisp a.lsp
in func1
-----

(define (func2 )
  #(print "in func2")#)


[-> 2 ] s|tep n|ext c|ont q|uit > 
It was expected that "trace" condition will affect (print "in func1"), but it was arised too late. Probably, (trace) works not in the current function, but in next user-defined which _will_ be called...
WBR, Dmi

Locked