What namespace to use for 'null' in ABC?

6 views
Skip to first unread message

Alen Balja

unread,
Mar 2, 2011, 12:08:09 PM3/2/11
to apparat-...@googlegroups.com
Further in my quest to construct the Try/Catch/Finally with ABC, I have encountered the following problem. With reverse engineering I see 'finally' uses an exception with null, not and Error. 

NewCatch((L3, L4) => L5, AbcQName('null,AbcNamespace(0,'null)), AbcQName('null,AbcNamespace(0,'null)))   


When I try to construct it I do it like this (trying to follow the above line quite literally)

val nullName = AbcQName('null, AbcNamespace(0, Symbol("null")))


However I get a runtime error which I assume is due to improper use of name / namespace. 



pleclech

unread,
Mar 2, 2011, 4:16:35 PM3/2/11
to apparat-framework
It's AbcQName(Symbol(null), AbcNamespace(0, Symbol(null)))

Best,
Patrick.

On Mar 2, 6:08 pm, Alen Balja <alen.ba...@gmail.com> wrote:
> Further in my quest to construct the Try/Catch/Finally with ABC, I have
> encountered the following problem. With reverse engineering I see 'finally'
> uses an exception with null, not and Error.
>
> * *
>
> *NewCatch((L3, L4) => L5, AbcQName('null,AbcNamespace(0,'null)),
> AbcQName('null,AbcNamespace(0,'null)))   *

Alen Balja

unread,
Mar 4, 2011, 3:18:29 PM3/4/11
to apparat-...@googlegroups.com
Thanks, it now works.
Reply all
Reply to author
Forward
0 new messages