added a new class variable declarator 'var' or 'variable'

supported  | .. | style declartion at the class level.
added the RDONLY flag to the object header
wrote some code to support default values for class-level variables such as instance variables
This commit is contained in:
hyunghwan.chung
2017-04-19 16:46:44 +00:00
parent a768bd8803
commit 4656bf128e
21 changed files with 864 additions and 476 deletions

View File

@ -6,7 +6,7 @@
##
class Exception(Apex)
{
dcl signalContext handlerContext messageText.
var signalContext, handlerContext, messageText.
method(#class) signal
{
@ -383,6 +383,10 @@ class InvalidArgumentException(Exception)
{
}
class ProhibitedMessageException(Exception)
{
}
extend Apex
{
method(#class) primitiveFailed
@ -428,6 +432,11 @@ ctx := thisContext.
NotImplementedException signal: (method_name & ' not implemented by ' & (self name)).
}
method(#class) messageProhibited: method_name
{
ProhibitedMessageException signal: (method_name & ' not allowed for ' & (self name)).
}
method(#class) cannotExceptionizeError
{
## todo: accept the object