REBOL Document

Same? - Function Summary


Summary:

Returns TRUE if the values are identical.

Usage:

same? value1 value2

Arguments:

value1 - The value1 argument.

value2 - The value2 argument.

Description:

Returns TRUE if the values are identical objects, not just in value. For example, a TRUE would be returned if two strings are the same string (occupy the same location in memory). Returns FALSE for all other values.


    a: "apple"
    b: a
    print same? a b
    true


    print same? a "apple"
    false

Related:

=? - Returns TRUE if the values are identical.
equal? - Returns TRUE if the values are equal.

User Comments:

-From: lmecir_mbox.vol.cz 7-Dec-2000/12:45:45-8:00:

My comment to this is:

http://www.sweb.cz/LMecir/evaluation.html


<Back | Index | Next>

Copyright 2004 REBOL Technologies