SPVM::E...Address(3)
π 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 & License π
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
- alpine 3.24: spvm-doc 0.990125-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms