logo       

params Methods: msg#00037

lang.boo.devel

Subject: params Methods

How are params methods represented in the AST?
def Method(*args as (int)):
print args.Length

translates to
<Parameters Name="args">
<Type xsi:type="ArrayTypeReference">
<ElementType xsi:type="SimpleTypeReference" Name="int" />
</Type>
</Parameters>

Looking at BooPrinterVisitor, it seems there isn't any code to output the *.

Daniel



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise