Just three humble requests for the KiXtart 4.50 release:
1) Inclusion of both ByVal and ByRef passing of variables into UDFs. This will enable us to write more complex UDFs that return multiple values. ByVal would be default and thus backwards compatible. Proposed syntax would be
code:
function test($a, byref $b, optional byref $c)
endfunction
function test1(bref $a, byval $b)
endfunction
2) Allow the '.' inside a variable name. this would allow us to write pseudo-object-oriented code like:
code:
function file.add($a)
endufunction
function file.delete($a)
endfunction
function file.modify($a)
endfunction
Currently this is not possible as we cannot return values as variable name with a '.' in it are not allowed.
3) Improved INGROUP that will also allow for checking of all kinds of Active Direcotry memberships (organizational units, ...) and arbitrary computers/usernames. proposed syntax is as follows and woudl be backward-compatible
code:
; check whether @USERID is a member of 'Domain Admins'
IF INGROUP('Domain Admins')
ENDIF
; check whether @WKSTA is member of organizational unit
IF INGROUP('someOU',@WKSTA)
ENDIF
IF INGROUP('somedomain\someOU\somesubOU',@WKSTA)
ENDIF
; check whether another computer is member of organizational unit
IF INGROUP('somedomain\someOU\somesubOU','anotherComputer')
ENDIF
; check whether another user is member of organizational unit or group
IF INGROUP('someOU,'username')
ENDIF
IF INGROUP('Domains Admins','another username')
ENDIF
[ 20. February 2003, 18:11: Message edited by: sealeopard ]