overloading(3pm) Perl Programmers Reference Guide overloading(3pm)NAME
overloading - perl pragma to lexically control overloading
my $str = "$object"; # doesn't call stringification overload
# it's lexical, so this stringifies:
# it can be enabled per op
no overloading qw("");
# and also reenabled
This pragma allows you to lexically disable or enable overloading.
Disables overloading entirely in the current lexical scope.
"no overloading @ops"
Disables only specific overloads in the current lexical scope.
Reenables overloading in the current lexical scope.
"use overloading @ops"
Reenables overloading only for specific ops in the current lexical scope.
perl v5.16.3 2013-03-04 overloading(3pm)
Check Out this Related Man Page
Class::MOP::Method::Overload(3) User Contributed Perl Documentation Class::MOP::Method::Overload(3)NAME
Class::MOP::Method::Overload - Method Meta Object for methods which implement overloading
This is a Class::MOP::Method subclass which represents methods that implement overloading.
This is the constructor. The options accepted are identical to the ones accepted by Class::MOP::Method, except that it also required an
"operator" parameter, which should be an operator as defined by the overload pragma.
This returns the operator that was passed to new.
o Stevan Little <firstname.lastname@example.org>
o Dave Rolsky <email@example.com>
o Jesse Luehrs <firstname.lastname@example.org>
o Shawn M Moore <email@example.com>
o XXXX XXX'XX (Yuval Kogman) <firstname.lastname@example.org>
o Karen Etheridge <email@example.com>
o Florian Ragwitz <firstname.lastname@example.org>
o Hans Dieter Pearcey <email@example.com>
o Chris Prather <firstname.lastname@example.org>
o Matt S Trout <email@example.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2006 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.18.2 2014-01-19 Class::MOP::Method::Overload(3)
I have a piece of C++ code that can be compiled using g++, but reports an error when compiled with xlC:
xlC -DHAVE_CONFIG_H -I../SRC -I../include -DNoChange -DSPRNG_MPI -q64 -DLONG64=long -I/usr/lpp/ppe.poe/include -DLONG64=long -c -o libsprng_a-bignum.o bignum.cpp
"bignum.cpp",... (1 Reply)
I have an requirement to overload the delete operator in C++, but it should also accept the sizeof() the object that is to be deleted. Actually I am trying to built a custom memory allocator and deallocator like a pool, which makes me to overload the delete operator.
Small example of the... (1 Reply)
I have a VPS 512mb (Burst 2GB) with Kloxo installed and hosting few sites on it with not much traffic
I am facing high cpu load for the last few days and seems mysqld is overloading the cpu
Any suggestion will be appreciated
Top output is as under
top -... (2 Replies)
I defined my own String class and overloaded the output operator with
friend ostream& operator<<(ostream& os, const myString& str);
//overloads the << operator so it can be used to output values of type myString
which works fine. Until I try to execute the following statement:
// +... (6 Replies)