Menu

#38 @assertAssociated doesn't parse parens properly.

closed
1
2015-01-05
2014-12-16
No

I just tried this in my code and it fails.

  @assertAssociated(ONE%get(),q)

The symptoms indicate that you are probably prematurely matching on the inner close paren.

[TLC]

Discussion

  • Michael L. Rilee

    An initial attempt to support this style has been pushed to development. An example is at Examples/Simple/tests/myTests.pf subroutine testWithParens and testWithParensBroken.

     
    • Michael L. Rilee

      The correct examples have not yet been pushed! Will push asap...

       
  • Michael L. Rilee

    Updated Examples pushed.

     
  • Michael L. Rilee

    The above syntax now works. However the parsing of nested expressions may not be robust: leaving this ticket open for now until we get more confidence.

     
  • Michael L. Rilee

    • status: open --> closed
     
  • Michael L. Rilee

    Bugfix: Our current paren use cases seem to be supported. We'll reopen this when needed.

     

Log in to post a comment.

MongoDB Logo MongoDB