(TCB) Scrolling plateform game

Announce and discuss the progress of your various programming-related projects...programs, games, websites, tutorials, libraries...anything!

Moderators: Pete, Mods

User avatar
ACC
Coder
Posts: 20
Joined: Sun Feb 17, 2008 2:56 pm
Contact:

Post by ACC » Sat Jul 05, 2008 1:45 pm

Lachie Dazdarian wrote:Not sure what is your problem with integer/short/long, as integer should cover it all for you. Just replace all your shorts and longs with integers. :P
This was a HUGE problem when I was trying to load file. I don’t know if it’s laziness or compatibly jeopardizing made on purpose but… man, it’s just so wrong.

To have (in QB)

Code: Select all

DIM SHARED i AS INTEGER
DIM SHARED j AS LONG
I must type (in FB)

Code: Select all

DIM SHARED i as SHORT
DIM SHARED j as INTEGER
It shouldn't be this way. I spend half a day to understand why my files couldn't be opened correctly... it just drove me nuts when I noticed that my (QB) integer were now 4 bytes instead of 2.
"I'll wear my badge, a vinyl sticker with big block letters adherent to my chest, tells to all your friends: I am a visitor here, I am not permanent"
(The postal service: "district sleeps alone tonight")

User avatar
burger2227
Veteran
Posts: 2414
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 » Sat Jul 05, 2008 5:51 pm

Doesn't make much sense to me either. That does give FB a wider range of integer values, but that is not compatable with your QB code either.

Like I have said before, they should have called it FREE C.

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0

Post Reply