Example Brick isIdentical 020




This example uses the isEqual function to compare the results of the copy and setq functions.



(define nameList (new Brick: 2 Name:Object:3)) Returns: #<Record 123456>

The copied brick has a different Object ID than the original brick.

(copy nameList) Returns: #<Record 234567>

The copied Brick has a different Object ID than the original Brick.

(isIdentical #<Record 123456> #<Record 234567> ) Returns: false

The isEqual function returns true with Records created with the setq function.

(setq nameList nameList2 ) Returns: #<Record 345678>
(isIdentical nameList nameList2 ) Returns: true


Related Examples

Here are examples of the isIdentical function at work.

BitVector isIdentical 017 Boolean isIdentical 007 Brick isIdentical 020 Character isIdentical 008
Date isIdentical 010 Dictionary isIdentical 002 Directory isIdentical 003 Error isIdentical 007
FltVector isIdentical 012 Function isIdentical 011 IntVector isIdentical 013 List isIdentical 018
Matrix isIdentical 005 NumMatrix isIdentical 020 NumVector isIdentical 014 Number isIdentical 009
ObjVector isIdentical 015 ObjectRepository isIdentical 019 Pair isIdentical 017 PcodeVector isIdentical 016
ShortVector isIdentical 014 Structure isIdentical 001 Vector isIdentical 004 Void isIdentical 006


Function Links

Here is the link to the current function used in this example.


Here are a number of links to other related functions.

compareEQ(#void) comparison(#void) isEqual(#void)


Argument Types

Here are the links to the data types of the arguments used in this example.


Here are a number of links to examples having similar argument types.

Brick addMethod 008 Brick cdr 010 Brick compare 019 Brick compareEQ 019
Brick compareGT 019 Brick compareLE 019 Brick compareLT 019 Brick compareNE 019
Brick comparison 019 Brick copy 012 Brick defmethod 025 Brick isAtom 011
Brick isEqual 018 Brick isIdentical 020 Brick isObject 014 Brick isType 022
Brick length 017 Brick methodsOf 024 Brick new 015 Brick ref 036
Brick send 027 Brick setCdr 014 Brick setq 029 Brick setq 28
Brick sizeof 029 Brick type 026

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE