how difficult is it to take a source code in 'c' or 'java' and translate it to basic? and can i open any source code in notepad? and which extensions are source code in 'c'? also i found things like " 'c' libraries for freebasic" how do libraries work?? and how do i use/access them (im sure im not ready for that, so just give a brief desciption on how it works)
The core of these languages are very similar. However, if Java or C++ is using objects (as in Brutus2D, it can make it very hard. It all depends on how much of the code is "core".
- 2. Can I open any source code in notepad?
In theory, yes.
… finish this later. Have to deal with something offline. —hartnell
- 3. Which source code file uses .c?
.c is a C source code file like .bas is a BASIC source code file.
- 4. How do libraries work?
You've already used them :) Libraries come in two formats : pure source code or precompiled .dll's. When you used include you were technically using a pure source code library. Technically, a library is just a bunch of pre-written code with useful functions.
The thing about translating code is that even though the core remains more or less the same, different programming languages have different features. For example, both FreeBASIC and Brutus2D have a text mode and PlayBasic does not. DarkBasic has really good 3D functions, but BlitzPlus does not. However, they all use variables, subs, functions, if-then, etc.
ok so basically if the language has a feature that doesnt have a BASIC translation then that function/statement or what ever wouldnt work in BASIC but, if BASIC did have a translation (like echo = print) then it would be possible? so then if my main aim is applications then my biggest difference would be the user interface, but, if my main aim was game development then the language itself is more taken into consideration???? in other words what im asking is from what i got from above then applications are more likely to be more compatible than games??
:) Never thought about applications. :) Actually, in the general purpose language world (vs. game programming) .. game programming libraries like Allegro are used to make games. As it turns out, you can use it with FreeBASIC or C or C++ or …. :)