Forum Post: Re: is Keyword now irrelevant ?

Status
Not open for further replies.
M

Marian Edu

Guest
checking if progress.lang.class:getclass('progress.json.jsonparser') is valid doesn't appeal you for some reason? On 05/07/2014 10:19 PM, jmls wrote: From: jmls Post: is Keyword now irrelevant ? Posted in: OpenEdge Development Link: http://community.progress.com/technicalusers/f/19/t/10029.aspx for some time I used to use the keyword() function in preprocessor &IF statements to check if certain features were present while compiling. However, I tried to use this today for checking for Json Object support. Much to my initial surprise, all the json support "keywords" came back as ? , even under 11 Thinking about it, I realised that these aren't keywords. They are new progress classes (much like AppError) and don;t show on the keyword() hit list Does this mean that keyword is actually becoming useless and should be marked as deprecated ? If more and more language features are being implemented as classes then the keyword function becomes less and less relative I know that I could use the proversion function in the preprocessor, but I didn't want to have to remember which version of progress a particular feature was implemented while I'm at it, is there a quick way of checking at compile time using preprocessors if the running version is 10.2B ? -- You were sent this email because you opted to receive email notifications when someone created a new thread. To unsubscribe from: - ...only this thread, disable notifications at http://community.progress.com/technicalusers/f/19/t/10029.aspx. - ...all email notifications from Progress Community, navigate to "Settings", click on the "Email" tab, then under the "Email Configuration" section, set Send Notifications to "No". -- m.edu keep it simple http://www.ganimede.ro http://ro.linkedin.com/in/marianedu medu@ganimede.ro mobile: +40 740 036 212 skype: marian.edu

Continue reading...
 
Status
Not open for further replies.
Top