This project is read-only.
2

Resolved

record equality in quotation evaluation

description

open Microsoft.FSharp.Linq.QuotationEvaluation
 
let print x = System.Console.WriteLine(sprintf "%A" x)
 
type record = { x:int; y:int }
let val1 = { x = 1; y = 1; }
let val2 = { x = 1; y = 1; }
let result = val1 = val2
print result
 
let quote = <@ let value1 = { x = 1; y = 1; }
           let value2 = { x = 1; y = 1; }
           let result2 = value1 = value2
           result2 @>
 
print (quote.EvalUntyped())
 
Output is true, false, and should be true,true.

comments

christiana_antiga wrote Nov 9, 2015 at 10:41 AM

You really have two themes in this one paragraph, so split this into two (contrary to popular opinion, it is ok to accept your thesis anywhere other than the first paragraph): one about children's tales in general, and one about Where the Wild Things Are. Assignment Help at IrishEssays.com