1Builtins.identical(3kaya)    Kaya module reference   Builtins.identical(3kaya)
2
3
4

NAME

6       Builtins::identical - Return whether two values are identical.
7

SYNOPSIS

9       Bool identical( a x, a y )
10

ARGUMENTS

12       x First value
13
14       y Second value
15

DESCRIPTION

17       Check  if  two  values  are identical. This is stronger than equality -
18       this tests whether two values are stored at the same  memory  location.
19       In other words, it tests whether modifying the contents of x would also
20       modify the contents of y
21
22
23
24    a = (5,6);
25    b = (3,a.snd);
26    c = a;
27    d = (5,6);
28    test = identical(b,a); // false
29    test2 = identical(b.snd,a.snd); //true
30    test3 = identical(c,a); // true
31    test4 = identical(d,a); // false
32
33       Of course, equal(a,d) would be true
34
35

AUTHORS

37       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
38       (kaya@kayalang.org). For further information see http://kayalang.org/
39

LICENSE

41       The  Kaya  standard  library  is free software; you can redistribute it
42       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
43       License  (version  2.1  or  any later version) as published by the Free
44       Software Foundation.
45
47       Builtins.equal (3kaya)
48
49
50
51Kaya                             December 2010       Builtins.identical(3kaya)
Impressum