takagi/cl-cuda

Infer global's type from its initial value.

takagi opened this issue · 0 comments

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.