Help save net neutrality! Learn more.
Close

#254 ASSERT: KERN_PROTECTION_FAILURE for syntax error

3.2.0
closed
5
2012-08-14
2007-04-10
No

t = .testTheArguments~new
s = .string~new("hello there")
t~testArgument(s)

::class testTheArguments

::method testArgument
use strict arg x assert(x~isA(.string)
say x

this fails with

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000001c
RexxSource::errorPosition (this=0x28edd70, errorcode=131, token=0x0)
at kernel/parser/Token.hpp:406
406 inline void getLocation(PLOCATIONINFO location)
{ *location = this->location; }

This is because I forgot to close the paren on assert. But it should
deliver a message.

Discussion


Anonymous

Cancel  Add attachments