SPVM::E...Address(3)

πŸ“¦ version 0.990125, in alpine 3.24

πŸ’– Name πŸ’–

okay so bestie, welcome to the SPVM::EqualityChecker::Address page πŸ’… β€” it's part of the User Contributed Perl Documentation manual, and the header short title is SPVM::E...Address(3) (truncated and iconic, no cap). This class is a callback implementation of EqualityChecker whose whole thing is checking if the memory addresses of the two objects are equal. Periodt. ✨

✨ Usage ✨

Here's the literal usage vibe:

use EqualityChecker::Address;

my $equality_checker = EqualityChecker::Address->new;

my $point1 = Point->new(1, 2);
my $point2 = $point1;
my $point3 = Point->new(1, 2);

# Equals
my $is_equal = $equality_checker->($point1, $point2);

# Not equals
my $is_equal = $equality_checker->($point1, $point3);

The comments are right there: # Equals for the first callback call and # Not equals for the second. iykyk πŸ¦‹

🌈 Description 🌈

EqualityChecker::Address is a callback implementation of EqualityChecker to check if the memory addresses of the two objects are equal. That's the whole assignment, and it ate. πŸ’…

πŸŽ€ Class Methods πŸŽ€

🧚 new 🧚

Signature, exactly as the page gives it:

"static method new : EqualityChecker::Address ();"

Create a new EqualityChecker::Address object. Boom, new object energy. 🫢

πŸ‘‘ Interface Method Implementation πŸ‘‘

Signature, again exactly:

"method : int ($object1 : object, $object2 : object);"

If the address of the two objects are equal, return 1. Otherwise, return 0. That's the callback behavior, fr fr. πŸ”₯

Copyright (c) 2023 Yuki Kimoto

MIT License


muah πŸ’– β€” this page is sourced from perl v5.42.2, dated 2026-02-03, and the footer title is SPVM::E...Address(3). bye bestie, go check those addresses 🌸

πŸ“¦ where this page comes from