Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Scott N. on May 07, 2008, 12:04:30 pm



Title: Feature Request - two new keywords
Post by: Scott N. on May 07, 2008, 12:04:30 pm
Talking about StringTokenizer and Java, two new keywords which I would like to see which will not be answered by introducing Java are the following:
1. DEPRECATED - A noop keyword which does nothing except warn the developer that this FUNCTION is deprecated when the module is being compiled.
2. PRIVATE or LOCAL - A keyword which ensures that the particular function is not visible outside of the 4gl module (Has been raised before).

Usage:
Code
  1. FUNCTION abc()  # Normal function - can be called from outside of the 4gl module.
  2. ...
  3. END FUNCTION
  4.  
  5. PRIVATE FUNCTION def()   # Private function - can only be called from within the 4gl module.
  6. ...
  7. END FUNCTION
  8.  
  9. DEPRECATED FUNCTION ghi()  # Function which is normal but produces a compile time warning to say it has been deprecated.
  10. ...
  11. END FUNCTION
  12.  
  13. DEPRECATED PRIVATE FUNCTION jkl()   # A private deprecated function.
  14. ...
  15. END FUNCTION

Thanks.




Title: Re: Feature Request - two new keywords
Post by: Rene S. on May 09, 2008, 10:53:49 am
First, both requests, disable calling a function outside the current module and marking a function as deprecated are very legal.
Before adding many other legal requests here: it's planned to extend the 3gl language core of genero-4gl to have more common  3gl basics. This would include your requests.