From bcbf441e09fb502cf64924ff2530fa144bdf52c5 Mon Sep 17 00:00:00 2001 From: Andreas Brachold Date: Mon, 13 Aug 2007 18:41:27 +0000 Subject: * Move files to trunk --- lib/Class/MakeMethods/Template/Struct.pm | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/Class/MakeMethods/Template/Struct.pm (limited to 'lib/Class/MakeMethods/Template/Struct.pm') diff --git a/lib/Class/MakeMethods/Template/Struct.pm b/lib/Class/MakeMethods/Template/Struct.pm new file mode 100644 index 0000000..7d9540b --- /dev/null +++ b/lib/Class/MakeMethods/Template/Struct.pm @@ -0,0 +1,41 @@ +package Class::MakeMethods::Template::Struct; + +use Class::MakeMethods::Template::Array '-isasubclass'; + +$VERSION = 1.008; + +1; + +__END__ + +=head1 NAME + +Class::MakeMethods::Template::Struct - Deprecated name for Array + +=head1 SYNOPSIS + + package MyObject; + use Class::MakeMethods::Template::Array ( + new => [ 'new' ] + scalar => [ 'foo', 'bar' ] + ); + + package main; + + my $obj = MyObject->new( foo => "Foozle", bar => "Bozzle" ); + print $obj->foo(); # Prints Foozle + $obj->bar("Bamboozle"); # Sets $obj->[1] + +=head1 DESCRIPTION + +Earlier versions of this package included a package named Class::MakeMethods::Template::Struct. + +However, in hindsight, this name was poorly chosen, as it suggests some connection to C-style structs, where the behavior implemented more simply parallels the functionality of Template::Hash and the other Generic subclasses. + +This functionality is now provided by Class::MakeMethods::Template::Array, of which this is an empty subclass retained to provide backwards compatibility. + +=head1 SEE ALSO + +L. + +=cut \ No newline at end of file -- cgit v1.2.3