The Objective-PHP keywords start with an
@ symbol. Note that this includes the
#import which is
@import in ObjPHP as `#’ denotes a
comment in PHP.
You may notice some keywords are added to be compatible with Objective-J syntax.
The following is a list of Objective-PHP keywords (effectively this extends the PHP keyword set by this list, ie you cannot use these names in your code) including whether they are currently supported in the language:
- KEYWORD : SUPPORT (Fully/ Partial/ Partial (In Development)/ No/ No (Coming Soon))
@interface: No (See ObjC vs. ObjPHP document)
@try: No (Coming Soon)
@catch: No (Coming Soon)
@synthesize: No (Coming Soon)
@accessors: Partial (In Development)
@encode: No (Coming Soon)
super: Fully (see note on
The following is a list of Special variables`:
$self(Note: self (no $) is reserved in PHP)
$this(In instance methods this is replaced by a pointer to the receiver)
The more awake (or caffine fueled) of you will note that
@ too has a special
meaning in PHP. It is the Silence operator and mutes the output of a function
@test(); wil output nothing). This is only a problem if one wants
to name a PHP method the same as one of the Objective-PHP keywords. However this
is illegal anyway (you cannot name methods after keywords) so there should be
not other constraints).
Document status: COMPLETE for current version.