RE: [Yabasic-users] Suggestions
Brought to you by:
psnake,
thomaslarsen
From: ROQUES A. - N. ( <AR...@na...>
<AR...@na...> - 2002-02-05 15:30:41
|
Hi! Some more suggestion for yabasic: - An instruction SWAP used to swap variable contents. Ie 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$("%H:%M") would return the same thing that the C function strftime. So if I want the current day, I just call TIME$("%d"). Regards, Arnaud Roques |