[Ur] Function constructors

sampath kirupa shankar kirupa78 at hotmail.com
Tue Dec 13 20:46:19 EST 2011


Hi everybody,
 I have a doubt with a function definition......
 
<a link= {transactions (r.Symbol,r.Shares)}> (I am sending two parameters with transactions)
 
and the function definition that I have given is
 
 transactions (i:string,j:int)= return
                <xml>
                <body>
                <h2>{[i]} and {[j]}</h2>
                </body>
                </xml>

Error:
Can't unify record constructors
Summary 1:  [#1 = Basis.string, #2 = Basis.int]
Summary 2:  [#1 = Basis.string, #2 = Basis.string]
    Field:  #2
  Value 1:  Basis.int
  Value 2:  Basis.string
Incompatible constructors
Con 1:  Basis.int
Con 2:  Basis.string

Can somebody please let me know what is the problem in calling a function with two parameters....
Kirupashankar Sampath
7907 N Backer Ave,
Fresno, CA 93720.
Ph: 817-715-5576 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20111214/ab0acc01/attachment.html>


More information about the Ur mailing list