Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.984.946 Times

ImplicitThis 0.01_001

  Date Added: September 04, 2010  |  Visits: 441

ImplicitThis

Report Broken Link
Printer Friendly Version


Product Homepage
Download (70 downloads)

ImplicitThis is a syntactical sugar for OO methods. SYNOPSIS use ImplicitThis; ImplicitThis::imply(); sub new { my $type = shift; my %args = @_; # must be blessed hash object bless { foo => $args{foo}, bar => $args{bar}, }, $type; } sub my_accessor { # $this is read for us. $bar is aliased to $this->{bar}, similiar for $foo $this->another_accessor($bar); $foo++; } sub _another_accessor { # this will die if called from something not derived from our package $foo++; } ABSTRACT Methods in OO Perl receive "$this" without having to read it. Instance field variables are accessable by name instead of having to dereference the hash ref. Privicy is enforced for methods starting with an understore. This emulates other OO languages, such as Java and C++, where the compiler implicitly and invisibly passes "this" as the first argument of each method call. While Perl passes this argument invisibly, you must manually write code to read it. Java and C++ also discover, at compile time, rather a variable is an instance variable or a static variable, without you needing to distinguish them using special syntax. We remove the extra syntax, but this is learned at run time, not compile time. Unlike Alias.pm, this code is likely to have a noticable impact on performance of code that uses OO accessors heavily. ImplicitThis::imply() places a thin wrapper is placed around methods in your object. *this{SCALAR} is a reference to a lexical weve shifted off the argument list. Aliases are created for each key in %$this to itself value in the same way. While this module works fine for me, your milage may very: it has not been extensively tested. Similar to Alias.pm. However, were pure Perl, and _no_ additional syntax is introduced..

Requirements: No special requirements
Platforms: Linux
Keyword: Bar Implicitthis Libraries Methods Oo Programming Sugar Syntactical
Users rating: 0/10

License: Freeware Size: 4.1 KB
IMPLICITTHIS RELATED
Programming  -  devkitPro 1.5.7
This project is for homebrew console development tools based on the gnu compiler collection with additional tools and libraries to aid programming each supported console. The windows variants are built with MinGW.
444.26 KB  
Libraries  -  GODI 20060118
GODI library provides an advanced programming environment for the Objective Caml (OCaml) language. From INRIA (who created OCaml) you can get the OCaml compiler and runtime system, but this is usually not enough to develop applications. You also...
1.5 MB  
Libraries  -  Data::Dumper 2.121
Data::Dumper module contains stringified perl data structures, suitable for both printing and eval. SYNOPSIS use Data::Dumper; # simple procedural interface print Dumper($foo, $bar); # extended usage with names print...
31.74 KB  
Libraries  -  PHP Advanced Graphing Class 1.4
PHP Advanced Graphing Class is a PHP class that can be used to generate line, bar, and 2D/3D pie graphs from multiple data sets. PHP Advanced Graphing Class offers many style and data formatting options. The graphs can be built from data defined...
 
Development Tools  -  What's New for Object-Oriented Programming in MATLAB Webinar - Code Examples 1.0
These are the code examples used in the "What's New for Object-Oriented Programming in MATLABdlT«" webinar, which described the new object oriented features in Release 2008a.To use the code, add the top folder to your path. See the test* M-files...
112.64 KB  
Network & Internet  -  WAJAF for Linux 1.00.20
et you build complete applications without programming a single HTML or javascript line. WAJAF is released under the GPLv3 license for its use and grow between the freeware community. Developer comments We are...
143.36 KB  
Graphs and Charts  -  HTML-Graphs javascript 4.3
HTML-Graphs could be used to create horizontal / vertical bar graphs, progress bars and faders.You can create simple graphs and even grouped bar graphs with legends, add labels, change colors etc. No graphics ped bar gcal libraries are required.
10 KB  
Development Editors  -  Xcode Toolbox 0.3
Xcode Toolbox prints out customizable accessor/mutator (get/set) methods for the variables of an Objective-C object. When creating a new object, instead of tediously typing in get & set methods for each variable, Xcode Toolbox creates methods and...
 
Development Tools  -  Chess with "Greedy Edi" 1.0
Play chess against "Greedy Edi". Get started...1. extract zip file2. change current directory to the new "chess" directory3. Run "Chess" (optionally for text figures run Chess(2)) Some help ...a) How to move the chess figures ... 1. Position the...
532.48 KB  
Network & Internet  -  Simpy Tools 1.1
SimpyTools is a collection of various software for using and enhancing the simpy.com social bookmarking service. Simpy Tools includes libraries in various programming languages for using the REST API of simpy.com. It also includes a Firefox...
17.41 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB