[Maypole] Using model class methods in addnew

Simon Cozens simon@simon-cozens.org
Wed, 13 Oct 2004 17:06:00 +0100


Peter Speltz:
> beer.mymethod. There is no object beer yet.  However it would be nice to call
> BeerDB::Beer methods anytime your working with beer.  

[% USE beer_class = Class("BeerDB::Beer"); beer_class.foo %]

-- 
The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offence.
		-- Edsger W. Dijkstra, SIGPLAN Notices, Volume 17, Number 5