00001 ---- Copyright 2012 Simon Dales
00002 --
00003 -- This work may be distributed and/or modified under the
00004 -- conditions of the LaTeX Project Public License, either version 1.3
00005 -- of this license or (at your option) any later version.
00006 -- The latest version of this license is in
00007 -- http:
00008 --
00009 -- This work has the LPPL maintenance status `maintained'.
00010 --
00011 -- The Current Maintainer of this work is Simon Dales.
00012 --
00013
00014 --[[!
00015 \file
00016 \brief test code
00017
00018 ]]
00019
00020 --[[!
00021 \mainpage
00022
00023 Some test code.
00024 This shows a hierachy of classes.
00025 For this example we do animals.
00026
00027 ]]
00028
00029 require 'animals'
00030
00031 -- main
00032 local animals = {
00033 Cat()
00034 ,Dog()
00035 ,Bird()
00036 ,RedKite()
00037 ,Pigeon()
00038 }
00039
00040 for k,v in pairs(animals) do
00041 v:call()
00042 end