view _test/temp.pl @ 197:6b1dda998839

Added IMPL::declare, IMPL::require, to simplify module definitions IMPL::Transform now admires object inheritance while searching for the transformation Added HTTP some exceptions IMPL::Web::Application::RestResource almost implemented
author sergey
date Thu, 19 Apr 2012 02:10:02 +0400
parents 4d0e1962161c
children 2ffe6f661605
line wrap: on
line source

#!/usr/bin/perl
use strict;

package Bar;

sub CTOR {
	shift;
	warn @_;
}

package Foo;

use IMPL::declare {
	require => {
		TObject => 'IMPL::Object'
	},
	base => {
		TObject => '@_',
		-Bar => '@_'
	}
};

sub hello {
	return TObject;
}

package main;

print Foo->new(qw(one for me))->hello;