[Yabasic-users] Suggestion of improvement of Yabasic
Brought to you by:
psnake,
thomaslarsen
From: ROQUES A. - N. <Arn...@se...> - 2001-04-06 10:10:13
|
Hello! I have a few (more) suggestion for yabasic. - An instruction SWAP used to swap variable contents: SWAP a,b would be equivalent to: dummy=a : a=b: b=dummy Of course, SWAP a$,b$ would be possible too, as well as SWAP a(i), a(i+1) which would be usefull for sorting subroutine. - a new peek$(): PEEK$("librarypath") would return the current librarypath (ie c:\yabasic\lib\ or /usr/yabasic/lib/ or whatever passed with "-librarypath") - a extension of TIME$ TIME$(a$) would return the same thing that the C function strftime. So if I want the current day, I just call TIME$("%d"). or TIME$("%H:%M") for just the current hour and minutes. Regards, Arnaud. |