Re: [fpc-pascal] Class vs Object type

2016-04-09 Thread Richard Ward
<> > I use Class and Object data types frequently in my code. I like the fact > that Object data types can be used without first instantiating an > instance and it gets freed automatically. > > It has to be said that for more complex "objects" I always use a Class > type though. Also, Delphi

Re: [fpc-pascal] Prospects for running Lightspeed/THINK Pascal and Codewarrior Pascal with FPC

2014-08-22 Thread Richard Ward
On Aug 21, 2014, at 6:00 AM,Jerry wrote: One of the things that I recall being possibly unique and possibly troublesome now is that under THINK Pascal, there was a built-in text I/O window and a built-in graphics drawing window, …… When I moved to Codewarrior, I was somehow able to

[fpc-pascal] GDB Case insensitive Search

2011-04-18 Thread Richard Ward
I can't figure out how to make a case insensitive search in GDB. The GDB docs only say that you can do the following but don't give much else or explain regexp. forward-search regexp or reverse-search regexp These works fine for simple (case sensitive) searches but I tried quite few

[fpc-pascal] ReadStr/WriteStr vs Val/Str

2010-10-18 Thread Richard Ward
As a user of the old Macintosh Pascal (later THINK Pascal), both ReadStr and WriteStr functions were included and I used them quite a bit. The names were different but the FPC implementation is basically the same as far as I can tell. Besides backward compatibility, portability issues and

[fpc-pascal] SetExceptionMask

2010-06-03 Thread Richard Ward
Did you try disabling floating point exceptions? A lot of C code assumes that floating point exceptions are disabled (since that's what the C library does on startup). Aha. And how do I do that ? uses math; SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow,

Re: [fpc-pascal] Writeable typed constants - what's the point?

2009-06-20 Thread Richard Ward
On Jun 20, 2009, at 6:00 AM, David Noon wrote: I think it is more expressive to make the semantics clear by declaring an inconstant constant as a variable -- because that's what it is -- This semantic issue is very confusing for beginners including people who are migrating from a non

[fpc-pascal] Re: MacMode More Info / which compatibility mode and object class type to use with Mac OS X, XCode and Carbon

2009-04-13 Thread Richard Ward
On Apr 13, 2009, at 2:42 AM, Pierre Paré wrote: Thank for you answers and the links I did subscribe to the list but it seems I needed to complete the process with a confirmation. The FPC list and wiki servers are presently not responding ; my confirmation is bouncing back. I could read

[fpc-pascal] Re: How I can install FPC IDE in MacOS

2009-04-13 Thread Richard Ward
Adam Pahlevi wrote: Is there FPC IDE that can run inside Mac OS X is there, how to install and compile or build or any stuff like that, that I may run? --- You just missed a few posts concerning beginning with FPC on the Mac. :) Check out the most recent archives for

[fpc-pascal] Re: Return Exit

2009-04-12 Thread Richard Ward
Mattias wrote: return x; funcname := x; exit(x); can be used in mode objfpc. OK. Thanks. That will be more portable than return since objpas is fairly common. Return is a bit simpler syntactically but exit performs the same way which is more important to having to change or

[fpc-pascal] Re: MacMode More Info / Beginning Mac Dev

2009-04-10 Thread Richard Ward
Pierre Paré wrote: If not the appropriate list for this question, would you redirect the request -- Also, check out the MacPascal List, the Lazarus list and the FPC/ Lazarus Wiki PAges I installed FPC with XCode on an iMac OS X 10.5 I am not a developer , I want to get back at

[fpc-pascal] Return Statement

2009-04-10 Thread Richard Ward
My last post got me thinking about weaning myself from macpas mode. One of the statements I have found quite useful is the macpas defined return statement which is used to return the function value and exits immediately from inside any nested block. Has there been any thought or

Re: [fpc-pascal] Typed Constants vs. Variables

2009-04-06 Thread Richard Ward
Jonas wrote: b) conversely, initialized variables are initialized every time their scope is activated (or whatever the proper term for that is: once in case they are declared in a program/unit scope, and every time a function/procedure is entered if they are declared locally in a routine)

[fpc-pascal] Case Sensitivity

2009-04-05 Thread Richard Ward
(snipped) Pascal is case insensitive . It may help newcomers like myself if this was mentioned on the ref document. Just double checked and it does not mention this. --- Interestingly, I was going over the lang ref guide last night and found that the case sensitivity is mentioned in

[fpc-pascal] Re: Case Sensitivity / Multiple Names

2009-04-05 Thread Richard Ward
Francisco Reyes wrote: I was refering to not seeing a note that one can not have a unit name be the same as a function name. I was never refering to case sensitivity. Sorry for not been more clear. --- Ahh, OK. Yes, I've run into that problem myself. The one I remember was where I

[fpc-pascal] Typed Constants vs. Variables

2009-04-05 Thread Richard Ward
Where/why would one use a typed constant vs. a variable. i.e. const myConst : double = 2.0*Pi; var myVar : double = 2.0*Pi; It seems to me the typed constant is superfluous and can potentially lead to bugs. ___ fpc-pascal

Re: [fpc-pascal] Best method for code reuse?

2009-04-04 Thread Richard Ward
Francisco Reyes writes : (snipped) The sample code in the ref document doesn't document the simplest case, but goes over what I think is a more complex example of a unit that uses another unit. It also doesn't have any actual code to do anything, so it is kind of an abstract example . I

[fpc-pascal] Re: Constructors Destructors 101

2009-04-03 Thread Richard Ward
Thanks Jonas and Leledumbo for your answers. Most of this makes sense to me now. Some minor followup questions / comments (snipped) C) Just out of curiosity, am wondering why FreeAndNil is global procedure instead of a method/destructor of TObject. ... c:=c.tsomeclass.create;

[fpc-pascal] Constructors Destructors 101

2009-04-02 Thread Richard Ward
I am a little bit unclear about certain things on class constructors and destructors. From what I read in the language reference guide (chapter 6) and runtime utilities document (chapter 29): 1) All classes descend from TObject; even declaring a new class without using TObject as a

[fpc-pascal] Re: Servlet server for Fpc apps

2009-03-30 Thread Richard Ward
Michael writes: This is where the ship already sinks. I'll give you the 2 most common reasons: - Many clients have PC-classrooms, where such things are simply forbidden. - Windows Vista and security issues make installation and automated updates a pain. Not everybody is allowed to do

[fpc-pascal] Which Mac?

2008-10-12 Thread Richard Ward
it yet and Ingemar's is a bit more finished except for a debugger. Ingermar's IDE is bundled with a bunch of GUI source code/applications as well. http://web.mac.com/roward/A_Musing_Rumination/Pascal.html Richard Ward ___ fpc-pascal maillist - fpc

[fpc-pascal] RE: Laz Snapshot Link

2008-08-15 Thread Richard Ward
That is an old link. IT should be http://www.hu.freepascal.org/lazarus/ -- Thanks for the info. I was at this page: http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips#Download_Free_Pascal_and_Lazarus and the link in question Lazarus daily snapshot page: was contained in the

[fpc-pascal] Re: Mac Port Discussion

2008-06-25 Thread Richard Ward
Selling is a lot less about technical details than most people think. As are U.S. presidential elections. Sorry, that just slipped out. heh I agree with the comment about the perception of mac and pc users in a corporate environment. The PC users are more powerful which is why

[fpc-pascal] Re: Porting Discussion

2008-06-24 Thread Richard Ward
Jonas writes: we even have administrative people at our university who have learned to be somewhat efficient with our SAP implementation, which is universally recognised by everyone here as a the most horrible user interface they have ever used). -- Funny you mention this because

[fpc-pascal] Re: Porting Discussion

2008-06-24 Thread Richard Ward
What I am curious about is why are people porting programs from other platforms to the Mac? Simply because there is demand. Most of what is said goes for direct sales to mac people, which is often not the case for these ported software. It is a distinction that I somewhat miss in these

[fpc-pascal] Re: Window Ports

2008-06-23 Thread Richard Ward
Jonas writes: That's really a very bad idea, unless you are only interested in supporting Windows users switching to a Mac (although even for them the application will feel weird after a while). I will second this opinion as last week, I was trying to find a 2D drawing program

[fpc-pascal] Re: fpc - Mac

2008-04-26 Thread Richard Ward
is a link to Apple's refurbished deals. They come directly from Apple and have full warrantee. http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/ RSLID?sf=wHF2F2PHCCCX72KDYnclm=CertifiedMacmco=MTE3NjY -Richard Ward ___ fpc-pascal