[fpc-pascal] hello world
Folks: Apologies for the beginner nature of this query... why won't this compile? It is the only open file and is saved, looks like a main program to me. program Hello; begin writeln ('Hello, world.'); readln end. getting: No main program found in open files. Can not build. thanks! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Feature proposal: function-based assignment operatorst
Same here. M On Mar 28, 2013, at 6:21 PM, leledumbo wrote: Good point. So to be consistent, don't turn it on :-) NEVER turn it on for me :-) If only I'm the core dev, I would mark the C operator feature as deprecated and remove it in the next major version. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Feature-proposal-function-based-assignment-operators-tp5713868p5713890.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] readonly variables
On Nov 28, 2009, at 1:15 PM, Anthony Walter wrote: This is not guaranteed in any way. It happens to be so most of the time, but your code should never assume this is so, except for global Ansistring variables. If all globals weren't initialized to 0 a lot of code from lots of people would potentially be in trouble. I've been using Pascal/Delphi for a very long time. Trust me I know my stuff. For what its Wirth None of our code ass-u-me-s (nor requires) initialization of _our_ globals (or locals) by any compiler or OS; all of our globals and locals are specifically initialized. Helps us survive the shifting Macintosh pascal compiler scene with 1988 source code. Before that I used Pascal at Honeywell, 1978-1988; all variables were initialized by their programs, not the OS, not the compiler. Gary ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] WORD (2 bytes) to String conversion
On Oct 25, 2009, at 3:09 PM, Paul Nicholls wrote: - Original Message - From: Graeme Geldenhuys graemeg.li...@gmail.com To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Friday, October 23, 2009 11:10 PM Subject: [fpc-pascal] WORD (2 bytes) to String conversion Hi, I'm reading in a WORD (2 bytes) from a binary file. I can display the Hex format of that value without a problem, but I would also like to display the String value of that WORD variable. It's the first 2 bytes of a file, which contains the magic number of the file. I would like my program to output the following: - Header Section header.ID(5348h = HS) ... - Hi Graeme, What about something like this (variant records, similar to C unions)? (untested, ie. from memory, but shoud work) TMyHeader = Packed Record Case Integer Of 0 : (ID : Word); 1 : (IDStr : String[2]); End; Doesn't String[2] imply a length byte followed by 2 bytes for content = 3 bytes for a Pascal string? Even a C string of two characters content is 3 bytes. Just my $.03 Gary ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] GRAPHICS HELP : PLEASE PLEASE????
So, a simple Google pascal graphics code samples did not help? Without a _lot_ more detail (beginner, PC/Mac OS etc) we can't help you, one please or a dozen Google first, list second. Sincerely, Everyone :-) On Jun 27, 2009, at 8:32 PM, Zachary Marlow wrote: Hello, Everyone I need some help can anyone help me and give some simple graphics code for reference. Sincerely, ZACH ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Install FPC/Lazarus for Win CE
I for one can not get Lazarus to run on 10.4.11 G5 Quad. Followed all installation instructions - no launch. I don't care to download the source and compile, I expect the easy installation to work (funny Mac user). I'll wait for the dmg release. Xcode seems to host FPC OK. Gary On Sep 10, 2008, at 8:24 AM, Paul wrote: The best solution is using the snapshots: http://www.hu.freepascal.org/lazarus/ You need to install: Lazarus - full - fpc 2.2.2 win32 Lazarus-0.9.25-16519-fpc-2.2.2-20080910-win32.exe and Lazarus - fpc 2.2.2 win32 - arm wince Lazarus-0.9.25-fpc-2.2.2-20080908-cross-arm-wince-win32.exe Need to install all 4 packages in this order ? since I have still problems with it on the iMac Are you using Windows in you iMac? You need to use Windows as a development operating system to develop for Windows CE. No, installed FPC/Lazarus on my iMac, but there are problems with it. Appearantly, I'm not the only one, I've seen problems with it on the mac-pascal list too. On Mac OS X 10.5, I can't start Lazarus (OS-error : You can't start lazzarus.app - it's not supported by this architecture) That's the reason I want to know exactly what steps to perform before I start. You can find a lot of info on the net about installing, but they don't always say the same or are not complete/updated etc. Paul ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Install FPC/Lazarus for Win CE
Trivial of little value or importance : huge fines were imposed for trivial offenses | trivial details. • (of a person) concerned only with trifling or unimportant things. Ass-u-me-s you have svn... and unless I read the lazarus page wrong the FPC source is required, yes? The more I use FPC Xcode, the more trivial Lazarus becomes. Gary On Sep 10, 2008, at 9:16 AM, Mattias Gärtner wrote: Zitat von Felipe Monteiro de Carvalho [EMAIL PROTECTED]: Downloading the sources and building Lazarus is trivial. It requires pasting 3 commands into the console: svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus cd lazarus make bigide LCL_PLATFORM=carbon OPT=-k-framework -kCarbon -k-framework -kOpenGl ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: classes initialization
p.s. I think the inconsistent behavior between local scope records and global scope records is kind of a flaw/danger in modern pascal.. as the bugs may not be caught until someone builds a program with local scope var.. Using uninitialised variables is virtually always bad, regardless of the scope. And the fact that global variables are zeroed at the program start is afaik not defined by the Pascal standard. It's just a side effect of the way most operating systems work. Affirmative. Pascal does not define any variable initialization itself - one should always init all Pascal vars of any type. Doing so is an excellent coding habit also portable to any other language/OS - protects against low-level implementation changes. I never trust a side effect I didn't code myself. 8-)) Gary ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] update confusion...
Folks, Not sure where to ask this, so I am starting with this list... Upgraded from xcode 2.1 to 2.4 and FPC 2.2.1. G5 quad, 10.4.11. My FPC xcode project builds ok, but, when I add an empty file and close the project, xcode says, to the effect: The project myProject.xcodeproj is read only You may need to SCM edit the project to gain writability. We don't use SCM, the SCM menu enable SCM is not checked, the SCM system is None, the project file is not locked, has read/write access for all permissions. Prior XCodes/FPCs/Templates had no problem.. Any help? Gary ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal