Hello there,
are the default visibility and modifiers specified somewhere by the language itself, or are those 'implementation dependent choices'. I cannot find an appropriate chapter in the NetRexx2 language reference manual. Example: class myclass public a=int -- note that there is NO preceeding properties statement b=Rexx '' method mymethod(parm1=int 0, parm2=Rexx) ... I did of course look at the NetRexxC generated code for this, but would like to know whther the behaviour is DEFINED somewhere in the language spec. Tom. PS: I do find the support of this 'compact syntax' very usefule and hand! :-) Thanks, MFC :-) -- Thomas Schneider Projects ReyC & LOGOS on www.KENAI.com _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
> Hello there, > > are the default visibility and modifiers specified > somewhere by the language itself, or are those > 'implementation dependent choices'. > > I cannot find an appropriate chapter in the NetRexx2 > language reference manual. Check out the PROPERTIES instruction (used to modify those attributes) and in particular the paragraphs that start "By default ...". (It's not spelled out elsewhere because the default is the typical usage. Don't burden the readers with options until they need them.) Mike _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Thomas.Schneider.Wien
Thomas,
According to TNRL pg. 106: "By default, if no properties instruction is used, or visibility is not specified, properties are inheritable (but not public)." And in pg. 94: "By default (i.e., if no visibility keyword is specified), methods are public." So it is indeed specified :-) --- Saludos / Kind regards. David Requena El 23/08/2010 20:23, Thomas Schneider escribió: Hello there, _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Mike Cowlishaw
El 23/08/2010 20:52, Mike Cowlishaw escribió: Check out the PROPERTIES instruction (used to modify those attributes) and in particular the paragraphs that start "By default ...". (It's not spelled out elsewhere because the default is the typical usage. Don't burden the readers with options until they need them.) Ah, but there's a foot note on page 106 of TNRL ;-) 44 The default, here waqs chosen to encourage the encapsulation of data within classes. Yeah, that qualifies aa yet another feeble attempt at humour.. :-) --- Saludos / Kind regards. David Requena _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Free forum by Nabble | Edit this page |