ObjectivePerl

ObjectivePerl is an Objective-C style syntax and runtime for perl.
Download

ObjectivePerl Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Kyle Dawkins
  • Publisher web site:
  • http://search.cpan.org/~kyled/ObjectivePerl-0.04/ObjectivePerl.pm

ObjectivePerl Tags


ObjectivePerl Description

ObjectivePerl is an Objective-C style syntax and runtime for perl. ObjectivePerl is an Objective-C style syntax and runtime for perl.SYNOPSIS use ObjectivePerl; @implementation MyClass { $someInstanceVariable; @private: $privateInstanceVariable; @protected: $normalInstanceVariable, $anotherInstanceVariable; } + new { return ~; } - setSomeInstanceVariable: $value { $someInstanceVariable = $value; } - someInstanceVariable { return $someInstanceVariable; } @endthen, from a calling script or class: use ObjectivePerl; ... my $instance = ~; ~; print ~."n";ObjectivePerl adds obj-c style syntax (although it's implemented with ~[] instead of just []) along with an obj-c style runtime that is very lightweight but makes the perl runtime a little more friendly to obj-c programmers.Why, you ask? Just because. Obj-c has the easiest-to-read syntax of just about any language. It has Smalltalk-style named arguments that are built into the method signature, so when you invoke those methods, you're forced to invoke them neatly, in a very legible fashion: ~;can never be misunderstood, whereas $window->setTitle("New window", 0xffffff, 0x00000);could be. Perl offers named arguments already in the form of hashes, but these are unwieldy (to an obj-c programmer).Requirements:· Perl Requirements: · Perl


ObjectivePerl Related Software