Menu

#31 Core dump for erroneous expression

git
open-accepted
tltext (12)
5
2012-05-28
2012-05-26
John Plaice
No

tltext
TLtext...
%%
intmp:type ;;
Segmentation fault (core dumped)

Discussion

  • Jarryd Beck

    Jarryd Beck - 2012-05-28
    • labels: --> tltext
    • milestone: --> git
    • assigned_to: nobody --> jarro_2783
    • status: open --> open-accepted
     
  • Jarryd Beck

    Jarryd Beck - 2012-05-28

    The problem here is that : is not an operator, so the expression that the parser returns is:
    intmp
    Then this line in the header
    fun print.c [c : intmp] = print_intmp!c;;
    causes the interpreter to try to print the intmp type using the base function print_intmp which only works for actual intmp objects. This is related to our current discussions on the semantics of types and we need to work out what this means.

     
  • John Plaice

    John Plaice - 2012-05-28

    There should still be no coredump!

     
  • Jarryd Beck

    Jarryd Beck - 2012-05-28

    It's erroneously calling print_intmp with something that isn't an intmp. Do base functions need to be checked by type? If so, it's still related to our types discussion. Until we solve these things I can't fix the segmentation fault.

     

Log in to post a comment.

MongoDB Logo MongoDB