OK the general issue is with type casting/conversion. Here is a short example section of code. FUNCTION Entry () SBYTE sbyte XLONG xlong XstClearConsole() sbyte = 10 ' This works xlong = sbyte PRINT "SBYTE CONVERTED TO XLONG IMPLICIT - ", xlong ' This doesn't work ' PRINT sbyte ' This doesn't work ' xlong = XLONG(sbyte) END FUNCTION Regards Robin
OK, Good Stuff CW with 6.4.7. Still A few type conversion/handling issues. I will track them down and report back some time soon.
Cheers CW. Hope it progresses well.Regards Robin On Tuesday 21 January 2025 at 02:11:46 GMT, cw2008can cw2008can@users.sourceforge.net wrote: Hi Robin and David. I apologies for the last version. It is turning out to be more complex than I thought. It might take me some time to fix and thoroughly test everything. CW Fixes Required For XBasic Linux 6.4.5 Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/xbasic/discussion/4704/ To unsubscribe from further messages,...
Hi There, CW Hope you had a good christmas. xb linux 6.4.6 still has the SSHORT negative STEP problemas demonstrated by the following code. '' ######################' ##### Entry () #####' ######################'' Programs contain:' 1. A PROLOG with type/function/constant declarations.' 2. This Entry() function where execution begins.' 3. Zero or more additional functions.'FUNCTION Entry () SSHORT x ' Test of faults found in 6.4.5 XstClearConsole() PRINT "HELLO WORLD" a% = 50 PRINT "a%:", a% ' Test...
Hi CW, Thanks very much for the new version of XBasic. Will check it out within the next couple of weeks. Regards Robin Warner On Monday 23 December 2024 at 04:20:24 GMT, cw2008can cw2008can@users.sourceforge.net wrote: Hi Robin, Here is xbasic-6.4.6 to the INT() problem you reported. I also tested FIX() and ABS(). There was also a problem with ROTATEL() and ROTATER(). There are some other changes too. Merry Christmas everybody. CW Attachments: xbasic-6.4.6-linux64-src.tar.gz (7.8 MB; application/x-gzip)...
The Following Code to demonstrates the compiler/run-time errors associated with data type SSHORT DECLARE FUNCTION Entry () DECLARE FUNCTION getIt (@a%) DECLARE FUNCTION getItFixed (@a) FUNCTION Entry () XstClearConsole() ' Problems Encountered in XBasic Linux 6.4.5 PRINT "Hello World" PRINT "XLONG Loop" GOSUB FixedXLONGLoop PRINT "INT Operation" GOSUB FixedINTOperation PRINT "Pass By Reference" GOSUB FixedSSHORTPassByReference RETURN SUB BadSSHORTPassByReference a% = 5 ' getIt(@a%) PRINT a% END SUB...
Hi Hugh, I don't know whether CW will do the necessary changes to XBasic for Windows 11. Did you make a note of the changes that you made? Regards Robin -----Original Message----- From: Hugh Cass xbhugh@users.sourceforge.net To: [xbasic:discussion] 4704@discussion.xbasic.p.re.sourceforge.net Sent: Mon, 3 Apr 2023 21:32 Subject: [xbasic:discussion] Re: 64 bit XBasic for Linux Hi Guys: Just yesterday I updated some "system" files and Xbasic, now works for Windows 11. Have not done much, but did find...
Hi CW,Great, standalone version of Artifex307.x now assembles and runs fine.Just a few bits of tidying-up left: The README.linux installation instructions are garbled, they just need to be tidied-up for the reader. The linux terminal window displays the following errors when xb64 is loaded: EventError()Lockout 100152 This either needs to be resolved or the error handled. The MaxReasons XBasic info window should really only be displayed on first use. Presumably a flag was set somewhere for this in...