You want it to generate ASSERT commands automatically, which will then
check for null & correct arg type at runtime?
That sounds usefull. I don't think there is anything specifically like
this. I'd probably want to use it if there were.
You might be able to hack something together using regular
expressions. Or maybe look into one of those auto-doc generation
tools, you might be able to reuse their processing routines. (They
automatically generate documentation from class files, so I'm assuming
the code to extract function names & argument names would be reusable)
-David R
On 12/8/05, Benjamin Jackson <[EMAIL PROTECTED]> wrote:
> Anyone out there who has done this and can point me in the right
> direction? I'm thinking for example:
>
> public static function myFunction(myParam:String, myParam2:MovieClip)
> {
> // some code ...
> }
>
> to
>
> public static function myFunction(myParam:String, myParam2:MovieClip)
> {
> ASSERT(null != myParam, "Null pointer reference");
> ASSERT(typeof(myParam) == "string", "Type of myParam should be of
> type String");
> // some code ...
> }
> ___________________
> Ben Jackson
> Diretor de Desenvolvimento
>
> [EMAIL PROTECTED]
> http://www.incomumdesign.com
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org