(define _giarg (_union _bool _int8 _uint8 _int16 _uint16
                       _int32 _uint32 _int64 _uint64
                       _float _double _long _ulong _pointer _string))

(define giarg (malloc _giarg)) (ptr-set! giarg _string "Test string")

---

It works. But I'm afraid, that string maybe allocated temporary and will be 
GC'ed at any time. Or _union keep _string pointer inside?


-- 
Roman Klochkov
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to