Advertisement
Guest User

Untitled

a guest
May 26th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. (load "Vector.carp")
  3. (use Vector2)
  4.  
  5. (defmodule one
  6.  
  7.   (deftype Example
  8.       [vtwo V2])
  9.  
  10.   (defn get-x
  11.     [v]
  12.     @(Vector2.get-x (Example.vtwo v))) ;;trying to force the correct module
  13.  
  14.   )
  15.  
  16. Can't unify Double with &t1
  17.  
  18.   (Vector2.get-x (one.Example.vtwo v)) : Double
  19.   At line 11, column 6 in '/home/jallen/dev/carp/temp/temp.carp'
  20.  
  21.   Expected first argument to 'copy' : &t1
  22.   At line 11, column 5 in '/home/jallen/dev/carp/temp/temp.carp'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement