line number from exceptions

Robin Edwards robin.ge at gmail.com
Sat Mar 28 15:15:04 UTC 2009


Hi,

I am trying to throw an error on a type mismatch through an assignment operator.

    ex = new 'Exception'
    ex['severity'] = .EXCEPT_ERROR
    ex['message'] = "Type mismatch in assignment!"

I can't find a away of leaving the user with a code line number is
this possible?

I have tried trying to grab '$/' to with no success any ideas?

Thanks for your help,

Rob


More information about the parrot-dev mailing list