object and '==' versus 'is'

6 views
Skip to first unread message

Ernie Rael

unread,
Feb 27, 2023, 4:02:20 PM2/27/23
to vim...@googlegroups.com
Just checking...

Doing "o1 == o2" checks o1,o2 same class type and "o1.member ==
o2.member" for all members.

Doing "o1 is o2" checks if o1 and o2 are the same objects (same address)

-ernie

Bram Moolenaar

unread,
Feb 28, 2023, 2:58:05 AM2/28/23
to vim...@googlegroups.com, Ernie Rael
Yes, that's right. I think it's implemented, but it isn't tested much
yet.

--
hundred-and-one symptoms of being an internet addict:
192. Your boss asks you to "go fer" coffee and you come up with 235 FTP sites.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages