Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Feature Request - two new keywords  (Read 10247 times)
Scott N.
Posts: 12


« 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.


Rene S.
Four Js
Posts: 112


« Reply #1 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. 
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines