Groups | Search | Server Info | Login | Register
Groups > comp.lang.perl.misc > #24893
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Newsgroups | comp.unix.shell, comp.unix.programmer, comp.lang.misc, comp.lang.perl.misc |
| Subject | Re: on Perl |
| Date | 2024-04-17 16:59 -0700 |
| Organization | None to speak of |
| Message-ID | <87le5br16d.fsf@nosuchdomain.example.com> (permalink) |
| References | (8 earlier) <uvk8o6$h2pg$3@dont-email.me> <dRicnfsW0phufoP7nZ2dnZfqnPednZ2d@brightview.co.uk> <uvnerd$1ct1p$1@dont-email.me> <87jzkvor7q.fsf@bsb.me.uk> <uvplme$1rupi$2@dont-email.me> |
Cross-posted to 4 groups.
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> On Wed, 17 Apr 2024 18:04:57 +0100, Ben Bacarisse wrote:
>> Perl has had support for object-oriented programming (with multiple
>> inheritance) for many years -- too many for me to remember.
>
> Then why this new “class” thing in 5.38?
It's explained reasonably well at the top of the "perldoc perlclass"
documentation in Perl 5.38:
History
Since Perl 5, support for objects revolved around the concept of
*blessing* references with a package name. Such reference could then be
used to call subroutines from the package it was blessed with (or any of
its parents). This system, while bare-bones, was flexible enough to
allow creation of multiple more advanced, community-driven systems for
object orientation.
Class feature is a core implementation of class syntax which is familiar
to what one would find in other programming languages. It isn't a
"bless" wrapper, but a completely new system built right into the perl
interpreter.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.perl.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Re: on Perl Javier <invalid@invalid.invalid> - 2024-04-16 20:47 +0000
Re: on Perl Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-04-17 03:14 +0000
Re: on Perl Ben Bacarisse <ben.usenet@bsb.me.uk> - 2024-04-17 18:04 +0100
Re: on Perl Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-04-17 23:23 +0000
Re: on Perl Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-04-17 16:59 -0700
Re: on Perl Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-04-18 01:33 +0000
Re: on Perl Rainer Weikusat <rweikusat@talktalk.net> - 2024-04-18 18:09 +0100
csiph-web