ATTENTION NEW USERS: Due to bot traffic, we are forced to manually approve registrations. We get thousands of bots trying to register, causing us to delete registrations in bulk with little ability to filter what is real or not. If you're having trouble getting approved, then send an email to ptrworkmails@gmail.com explaining that you are a real user. Use the same email you're trying to register with. Thank you.

Craft Basic version 1.3 released

Updates about our products and services.
Post Reply
admin
Site Admin
Posts: 146
Joined: Wed Feb 22, 2023 6:51 am

Craft Basic version 1.3 released

Post by admin »

​I have released version 1.3 to fix another issue with the for loops. They should be even more accurate and stable now. The issue was happening with things such as FOR i = -1 TO 0 STEP -1. No wonder.

There's now a QUOTE keyword to go along with COMMA and NEWLINE for output formatting.

I also "improved" the line number display to be more like margins. This required including a font file, increasing the size of the download, but making sure compatibility is kept with Windows 95 though 10.

A Van Eck sequence example has been added to the examples folder.

Code: Select all

'van eck sequence example

define limit = 1000

dim list[limit]

print "calculating van eck sequence..."

for n = 0 to limit - 1

	for m = n - 1 to 0 step -1

		if list[m] = list[n] then

			let c = n + 1
			let list[c] = n - m

			break m

		endif

		wait

	next m

next n

print "First 10 terms: "

for i = 0 to 9

	print list[i]

next i

print "Terms 991 to 1000: "

for i = 990 to 999

	print list[i]

next i

end
Post Reply