[osflash] Design By Contract on ActionScript 2

Miguel Serrano Milano mserranom at gmail.com
Sat Oct 7 10:09:17 EDT 2006


>

Hi! I've been thinking about this last days. There's no solution at  
the moment, but it is not difficult to develop a solution by one of  
this two ways:

1. Explicit asserts and an AOP approach to check and invariants. The  
asserts are easy to define: just a collection of Assert.precondition 
() and Assert.precondition(), and as invariants a method  
classInvariants() could be defined to be invoked after every method  
call.

2. A precompiler. I think there are tools to write precompilers for  
any language. Do somebody know something about this?

What do you think?



> Message: 1
> Date: Thu, 5 Oct 2006 15:11:13 -0300
> From: "Marcelo de Moraes Serpa" <celoserpa at gmail.com>
> Subject: [osflash] Design By Contract on ActionScript 2
> To: osflash at osflash.org
> Message-ID:
> 	<1e5bcefd0610051111u32390762kc43f423a31d8b4f5 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Is there any tool for AS2 that allows me to implement the DBC  
> methodology?
>
> Cheers,
>
> Marceo.

Miguel Serrano Milano
mserranom at gmail.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20061007/61cd8828/attachment.htm


More information about the osflash mailing list