On 10/03/2012, at 12:28 AM, Adrian Crum wrote: > On 3/9/2012 10:55 AM, Jacopo Cappellato wrote: >> On Mar 9, 2012, at 10:03 AM, Adrian Crum wrote: >> >>> I noticed how you set up the GroovyBaseScript class - so that the methods >>> are accessible as if they were a part of the script. That approach might >>> cause problems with name clash. I might write a method in my script that is >>> the same as a DSL method, and then I get odd behavior I can't explain until >>> I look through the DSL reference and discover a matching method name. >> Your method would be used instead. > > Exactly. You don't see a problem with that?
For what it's worth the methods could be marked 'final' to avoid an accidental override. Regards Scott