SPVM::Cloneable(3)
πΈ Name πΈ
Okay so bestie, meet SPVM::Cloneable β the Interface Type to Clone Object. Manual name? SPVM::Cloneable(3), hanging out in the User Contributed Perl Documentation. π
β¨
β¨ Description β¨
The Cloneable interface in SPVM is the interface that represents a cloneable interface. That's the whole vibe: it's giving βthis object can be cloned,β no cap. π¦
π¦ Usage π¦
Here's the usage example, literally exactly as the page gives it β main character code block energy:
class Point {
interface Cloneable;
method clone : Point () {
my $new_point = Point->new($self->x, $self->y);
return $new_point;
}
}
π Interface Methods π
π clone π
The required signature is exactly:
required method clone : object ();
Your implementation must return the cloned object. That's the assignment, periodt. π
π Copyright & License π
Copyright (c) 2023 Yuki Kimoto
MIT License
That's the whole page, bestie β brought to you by perl v5.42.2 on 2026-02-03, with SPVM::Cloneable(3) energy. Mwah! ππ
π¦ 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