#664 Nullable params w/out name in func sig

brian Fri 10 Jul 2009

You have to leave off the name and have a return type declared:

class Foo
{
  Void ok(|Obj? x->Void| f) {}
  Void broken(|Obj?->Void| f) {}
}

brian Fri 10 Jul 2009

Promoted to ticket #664 and assigned to brian

brian Sat 11 Jul 2009

Ticket resolved in 1.0.45

For those of you implementing Fan grammars/parsers, here is the problem:

|sys::Obj?->sys::Void|

In the function signature above the ?-> is tokenized as the safe dynamic call operator. I fixed the Fan parser to handle this case, another option would be to break that into two tokens.

Login or Signup to reply.