takagi / cl-cuda

Cl-cuda is a library to use NVIDIA CUDA in Common Lisp programs.
MIT License
280 stars 24 forks source link

Infer global's type from its initial value. #61

Closed takagi closed 8 years ago

takagi commented 8 years ago

Infer global's type from its initial value, removing type argument from DEFGLOBAL macro.

before

(defglobal x int 1)

after

(defglobal x 1)    ; type of x is inferred as int.