Sealeopard
(KiX Master)
2003-02-20 06:10 PM
Wishlist for KiXtart 4.50

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 ]


Chris S.
(MM club member)
2003-02-20 06:21 PM
Re: Wishlist for KiXtart 4.50

I'd still like to see a With/EndWith statement added. With the advent of COM scripting it would improve executing a series of statements on a single object.

Example:

code:
With $form
.Height = 400
.Width = 600
.Caption = "This is MyLabel"
EndWith



Radimus
(KiX Supporter)
2003-02-20 07:17 PM
Re: Wishlist for KiXtart 4.50

don't forget about these if possible:

break for loops
OnError / EndOnError
Continue for Select/Case statements


LonkeroAdministrator
(KiX Master Guru)
2003-02-20 08:22 PM
Re: Wishlist for KiXtart 4.50

hehe, small gameplay of that object style...
code:
function selma()
$add="nada"
endfunction

selma
"what:" selma().$add
get $

for structs and other sweet things I really would like to see this stuff done.

function-libraries (functions inside functions)


Richard H.Administrator
(KiX Supporter)
2003-02-21 09:56 AM
Re: Wishlist for KiXtart 4.50

We also need static (private) variables for both function and file scope.

Without these we cannot create self contained functions or function libraries which have state information.


NTDOCAdministrator
(KiX Master)
2003-02-21 06:28 PM
Re: Wishlist for KiXtart 4.50

I think your Search is over... [Big Grin]

I've found a link to some software that appears to handle all those style requests you guys have asked for accept maybe the Ingroup stuff.

Scripting the new frontier


Glenn BarnasAdministrator
(KiX Supporter)
2003-02-22 12:51 AM
Re: Wishlist for KiXtart 4.50

Jeez, NTDOC - I'm glad YOU said it! Cute presentation as well..

[Big Grin]

Glenn


ShawnAdministrator
(KiX Supporter)
2003-02-22 12:59 AM
Re: Wishlist for KiXtart 4.50

At least Kixtart doesn't require a 20 MB runtime DL & install [Razz]

[ 22. February 2003, 00:59: Message edited by: Shawn ]


LonkeroAdministrator
(KiX Master Guru)
2003-02-22 01:32 AM
Re: Wishlist for KiXtart 4.50

unrelated posts moved to general-forum:
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=14;t=000445;p=1

[ 22. February 2003, 02:42: Message edited by: Lonkero ]


Kdyer
(KiX Supporter)
2003-03-02 05:01 PM
Re: Wishlist for KiXtart 4.50

I know that there have been those of us who, have taken VBScripts and converted for use in the KiX world. What about byVal and other related components?

Kent


Sealeopard
(KiX Master)
2003-03-02 05:59 PM
Re: Wishlist for KiXtart 4.50

That's why it's #1 on my list in the first post of this thread [Smile]

ChristopheM
(Hey THIS is FUN)
2003-03-07 10:40 AM
Re: Wishlist for KiXtart 4.50

Radimus wrote about break, OnError, etc...

break in every kind of loop would be interesting (for, do...loop, while...)

OnError doesn't seem the better way to trap error (kix is not VB). I'd prefered something like try..catch (like C or Java) or try..finally or try..except in delphi.


Les
(KiX Master)
2003-03-09 02:43 AM
Re: Wishlist for KiXtart 4.50

This thread has been hijaaked so many times it made it full circle to Jens' original request. I should have closed it then.