tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.03k stars 48 forks source link

Initializing function-pointers at compile-time not possible #103

Closed porky11 closed 8 years ago

porky11 commented 8 years ago

Example:

(def fun (fn intern void (void)
  (return)))

(def fun-ptr (var intern (p (fn void (void))) (# fun))) ;;segfault here
tomhrr commented 8 years ago

On Fri, Sep 16, 2016 at 08:58:17AM -0700, Fabio Krapohl wrote:

Example:

(def fun (fn intern void (void) (return)))

(def fun-ptr (var intern (p (fn void (void))) (# fun))) ;;segfault here

Thanks, this has been fixed.