Feature Request - two new keywords

Started by Scott N., May 07, 2008, 12:04:30 PM

Previous topic - Next topic

Scott N.

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 (genero) Select
FUNCTION abc()  # Normal function - can be called from outside of the 4gl module.
...
END FUNCTION

PRIVATE FUNCTION def()   # Private function - can only be called from within the 4gl module.
...
END FUNCTION

DEPRECATED FUNCTION ghi()  # Function which is normal but produces a compile time warning to say it has been deprecated.
...
END FUNCTION

DEPRECATED PRIVATE FUNCTION jkl()   # A private deprecated function.
...
END FUNCTION


Thanks.



Rene S.

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.