1/8/2023 0 Comments Manual de free pascal![]() It depends on what capabilities the particular BASIC has. ![]() Though on modern systems we use pointers instead, even in wrote:I know this is a Pascal thread, but what exactly would you do with peek/poke in a BASIC running on a modern unix-like system with memory management, etc. And there are people developing entire Operating Systems in compiled BASIC (mostly FreeBASIC). On a bare metal situation though, that is another story. That is unless your application does something like allocate a block that is mapped to the addresses for GPIO, and then changes the states of the GPIO pins, or reads there states. I know this is a Pascal thread, but what exactly would you do with peek/poke in a BASIC running on a modern unix-like system with memory management, etc. Ok QuickBASIC for the Macintosh is lacking one important thing, that is structured data types (using the TYPE keyword in QuickBASIC on DOS), though I do not think that the DOS version of QuickBASIC even had that until somewhere around version 4.0. QuickBASIC 1.0e for the Macintosh would make more since, as it has POKEW, PEEKW, as well as commands to directly deal with common GUI operations. I am surprised that the newer BASIC versions are so much based on QuickBASIC 4.5. Unfortunately QuickBASIC did not define pointers very well, or similar. There is FreeBASIC, QB64, and a few other less known ones that all use the QuickBASIC 4.5 lexicon for there base grammar with extensions from there (even things like BASIC4GL use this form). QuickBASIC seems to be the basis of most modern BASIC compilers. With Pascal we have a de facto Pascal though, that is the Pascal as implemented in Turbo Pascal 5. Before Fortran-90, it could be anybody's guess what a FORMAT statement from an obscure system could represent. Like Pascal, though, it's not the standard versions of BASIC that many people use, but the de facto ones: Turbo Pascal to Delphi, MS QuickBASIC to Visual BASIC.Īs a former Fortran programmer, having standard IO libraries is a good thing. Minimal BASIC is almost too small to be useful, but it has an actively-maintained interpreter in bas55. I only know of one implementation of Full BASIC (Decimal BASIC, from Japan no ARM distro available). Scruss wrote:There are standards for BASIC: ISO 10279 for full BASIC, ISO 6373 for minimal BASIC, and a raft of related ANSI and ECMA standards. That "feature" has been in that library, waiting to blow our feet off for some years! ![]() Which means the thing explodes when it rolls over at 2 giga bytes. Turned out that the implementation of blocking socket in the Synapse library maintains a count of bytes received on an open socket. Same thing really if your code has made it into production. Or produce a rage check error if that is enabled. It was found that following the addition of a simple new feature to our Pascal monstrosity was causing it to crash after three or four days running. One can do all that and more in C++ with the Qt libraries.Īside: Perhaps I'm having a little grump about Pascal today because just last Friday I was again reminded how pointless all that ugly type annotation and checking in Pascal is. All that type checking is annoying and does not help stopping feet getting blown off. There is no international standard for it. I can't argue with your list of advantages of Free Pascal. (Delphi is nowadays out of reach for the amateur user). Delphi compatible (you can port Delphi programs very easily to Lazarus/FreePascal) Object Pascal is a very good OOP language! The Pascal strong typing menas that it is very difficult to "shoot ones own foot" Code independence (you can develop on a PC and compile for any hardware/operating system you want) Multi-platform (both operating systems and hardware) The very big advantages of this combination is: Now retired but working with Raspberry Pi and I am using FreePascal + Lazarus on RPi2 platforms. I have worked with Industrial automation since 1995 and we use exclusively ObjectPascal from Borland-CodeGear-Embarcadero (the system has been transferred between owners during these 20+ years). Have you used Skype recently? That is programmed using Pascal (in the Delphi flavour) on Windows platforms.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |