Re: [fpc-pascal] delphi compatibility

2011-04-21 Thread Matt Emson
Replace with just Windows. Delphi hasn't had these since version 1.0 and they are aliased to that one Unit. No idea why they exist in the unit. In question also Very strange. Sent from my iPhone 4 On 21 Apr 2011, at 17:22, John Lee johnelee1...@googlemail.com wrote: Just downloaded

Re: [fpc-pascal] Converting .m4a to .wav

2011-03-09 Thread Matt Emson
On 09/03/2011 12:52, Leonardo M. Ramé wrote: Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav? m4a is basically aac, so I'd look down that route. However, m4a files can be protected by

Re: [fpc-pascal] Name of the programming language used in/with FPC

2011-02-16 Thread Matt Emson
On 16/02/2011 09:48, Frank Church wrote: How about Apollo? This was the code name for Adobe Air - I expect it would be hard to get traction if Adobe still hold some kind of rights over it. ___ fpc-pascal maillist -

Re: [fpc-pascal] FPC + Haiku

2011-01-28 Thread Matt Emson
On 28/01/2011 11:08, Ben wrote: Hi, Anybody here using FPC on Haiku? If so, how well does it work compared to under Windows or Linux? It used to work well enough under BeOS R5, but there was always an issue with the C++ nature of the Be API. Haiku seems to have a Qt port, so you might get

Re: [fpc-pascal] The new Delphi 2010 RTTI

2011-01-10 Thread Matt Emson
On 10/01/2011 09:26, alexv...@mail.ru wrote: If so, there must be an executable format supported by all FPC target platforms natively. I don't know any such format. We have to duplicate some OS functions to make things crossplatform. I don't think that is what Sven meant. I think the

Re: [fpc-pascal] The new Delphi 2010 RTTI

2011-01-10 Thread Matt Emson
On 10/01/2011 11:09, michael.vancann...@wisa.be wrote: Like I said, your proposal requires that we emulate all OSes on all other OSes. Or create a VM layer that levels the OS level differences - but again, why do this? Creating such a VM is probably a magnitude of complexity over just

Re: [fpc-pascal] Looking for SDL_opengl header

2010-12-08 Thread Matt Emson
On 08/12/2010 09:42, Darius Blaszyk wrote: Couldn't find it there, although there are some examples with SDL and OpenGL available with Jedi-SDL. So perhaps I don't need a specific SDL_opengl header (I'm porting a C app). Darius Did you try here? http://www.freepascal-meets-sdl.net/ Or here?

Re: [fpc-pascal] Working Free Pascal android JNI example

2010-12-07 Thread Matt Emson
On 07/12/2010 10:46, Felipe Monteiro de Carvalho wrote: Still not ideal, however. Well, no. As Android targets any processor - not just ARM. Indeed, there are Intel based versions. Native is bad, and only come in to existence to compete with other platforms with purely native compilation -

Re: [fpc-pascal] More Win CE

2010-11-18 Thread Matt Emson
Sent from my iPhone 4 On 18 Nov 2010, at 08:31, Max Vlasov max.vla...@gmail.com wrote: But I thought about it recently and I think at least that there's a platform that could be such - Symbian. Never developed for Symbian using their native SDK, but as an OS - Symbian is extremely

Re: [fpc-pascal] More Win CE

2010-11-17 Thread Matt Emson
On 17/11/2010 09:16, Felipe Monteiro de Carvalho wrote: You could try MeeGo: http://en.wikipedia.org/wiki/MeeGo Which is. at least in this instance, based on Maemo. At the moment with this phone: http://en.wikipedia.org/wiki/Nokia_N900 My best advice - and this is real world experience

Re: [fpc-pascal] More Win CE

2010-11-17 Thread Matt Emson
Sent from my iPhone 4 On 17 Nov 2010, at 15:26, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Which smartphone platform do you recommend then? None of them are ideal at the moment. From a Free Pascal perspective, iPhone has the best support. If I was choosing, I'd

Re: [fpc-pascal] Corba Interfaces and IInterface query

2010-11-14 Thread Matt Emson
On 14 Nov 2010, at 13:16, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 14 November 2010 14:18, Sven Barth wrote: IInterface and IUnknown are the same in Delphi 7 as well as they are in FPC (although they are aliased the other way round, but that doesn't matter). So then comes the

Re: [fpc-pascal] Re: Re: WinCE / Win32 compilation

2010-10-16 Thread Matt Emson
On 16 Oct 2010, at 14:23, Uffe Kousgaard u...@routeware.dk wrote: Sven Barth pascaldra...@googlemail.com wrote in message TCriticalSection is a WinAPI struct if you include the unit Windows. Appart from unit ordering (which is a shaky way of reliably resolving things), you could always

Re: [fpc-pascal] GetTempFileName in Linux

2010-10-08 Thread Matt Emson
Sent from my iPhone On 7 Oct 2010, at 22:44, Michael Van Canneyt mich...@freepascal.org wrote: Aren't there automation systems for this? Just like debian's 'apt-get update upgrade' with a custom repository with your software? But then for windows I presume? I haven't seen any yet.

Re: [fpc-pascal] Any recommendations for a good in-memory storage type

2010-09-22 Thread Matt Emson
Graeme Geldenhuys wrote: So which one would be more fitting for any mime types, or is there another option I didn't think of? Here is a simple usage example of the TfpgMimeData class - to help put this in perspective: This seems a lot like the BMessage class used with in the BeAPI. There

Re: [fpc-pascal] deprecated syntax is inconsistent.

2010-04-29 Thread Matt Emson
Graeme Geldenhuys wrote: On 29 April 2010 14:51, Florian Klaempfl flor...@freepascal.org wrote: Having a bigger lookahead makes a lot more things far more complex epecially in combination with include files, macros, generics. Why? You only apply the extra lookaheads where needed

Re: [fpc-pascal] fpGUI Toolkit on WinCE

2010-03-16 Thread Matt Emson
Adrian Veith wrote: //pcol^ := Plongword(p)^; -- changed pcol^ := (LongWord(p[3]) shl 24) + (LongWord(p[2]) shl 16) + (LongWord(p[1]) shl 8) + LongWord(p[0]); This looks like an endian issue. Aren't Bitmaps in Little Endian format (as per the usual endianess of the Intel x86

Re: [fpc-pascal] fpGUI Toolkit on WinCE

2010-03-16 Thread Matt Emson
Adrian Veith wrote: ..the bitmaps look scrambled and have different colors. I haven't found the solution for this yet. Ignore that last message. It seems WinCE is only ever little endian. So it is probably more to do with DIB vs general device dependent Bitmaps. Have you tried converting the

Re: [fpc-pascal] some new features to delphi prisem

2010-02-23 Thread Matt Emson
Sent from my iPhone On 24 Feb 2010, at 06:10, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Well, *this* can be done much easier ;-): snip I think an interjection at this point is required - all of this is down to personal experience, preference and style. It is what you are

Re: Re[2]: [fpc-pascal] some new features to delphi prisem

2010-02-22 Thread Matt Emson
Sent from my iPhone On 21 Feb 2010, at 19:37, JoshyFun joshy...@gmail.com wrote: z := iff(a=b,1,2); But to me it looks awful and a bit of c-ism No, that is a VB-ism. A C-ism would be: z = (a==b ? 1 : 2); Which I fo tend to use myself in c# as it is a lot more convenient in some cases.

Re: [fpc-pascal] some new features to delphi prisem

2010-02-22 Thread Matt Emson
Graeme Geldenhuys wrote: Marco van de Voort wrote: It also proves that such solution external to the language is possible. That weakens the case for a language feature My point exactly! The language doesn't need such a feature because your editor of choice should be able to do that,

Re: [fpc-pascal] some new features to delphi prisem

2010-02-22 Thread Matt Emson
Marco van de Voort wrote: IMHO Prism is not even Delphi. Just recycling of the brand. Laying cards on the proverbial table, I don't think it was ever intended to be Delphi. RemObjects developed the compiler completely outside of Delphi for a number of years before the technology was

Re: [fpc-pascal] some new features to delphi prisem

2010-02-22 Thread Matt Emson
Jonas Maebe wrote: Maybe this discussion could be moved to the fpc-other list? It's not really directly applicable to FPC anymore. Indeed, which is why I said [..] I can also see why it is not something worth discussing further. I guess if someone was committing to developing the compiler

[fpc-pascal] Farewell

2008-05-05 Thread Matt Emson
After almost 10 years of being on this list (FPC was at about 0.9x when I joined), it occurs to me that I just don't code in Pascal any more and don't foresee doing so again. I do read messages, but more from a nostalgic point of view. So, I'm going to leave the list. This will be a two stage

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Matt Emson
Michael Van Canneyt wrote: And it is exactly why I can't use MySQL, MSSQL: they don't have sequences or generators. I need the ID BEFORE I insert the record, not after. YES!! This is also missing from SQL Server... or at least, using a GUID is complete overkill. The mechanisms SQL Server

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-11 Thread Matt Emson
Inoussa OUEDRAOGO wrote: Have you try SCOPE_IDENTITY() ? Available at least since SQL SERVER 2000. I have used it with success. Well, yeah. But it's not perfect. I want generators, as in: create generator an_atomic_counter; set an_atomic_counter = 1 /*or something like that*/ declare

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-10 Thread Matt Emson
Marco van de Voort wrote: Michael Van Canneyt wrote: My point of view is that a database is for storage, not for logic... Ah, this is basic use of resources. The benefit of Stored Procs is speed of execution. For dialy routines, only if they are not complex, and

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-10 Thread Matt Emson
On 10 Apr 2008, at 11:44, Marco van de Voort wrote: Oh, and CPU is cheap compared to DB licenses nowadays. Aha, the Microsoft defense! ;-) Chewbaka was a Wookie, don't you know? ;-) I saw him whine yesterday in the Empire Strikes Back yes. And he was as realistic as buying P-I client

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-09 Thread Matt Emson
Graeme Geldenhuys wrote: Any documentation for Interbase 5.5 or 6.0 should be fairly helpful. TBH, the way Firebird did security last time I looked, was pretty similar to the way SQL Server does it if you don't use integrated security. Adding users was hell, but adding grants etc was pretty

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-09 Thread Matt Emson
Marco van de Voort wrote: On Wed, 9 Apr 2008, Matt Emson wrote: The only negative thing I can say about Firebird is that it can produce a corrupt backup file. IIRC Mass insertion could bring down the db (slow to an effective DOS to other users) unless you commit the transaction every

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-09 Thread Matt Emson
Graeme Geldenhuys wrote: ... At the moment we simply hard-code a firebird username and password in the application to create the connection, then access our own 'users' table to manage access to our application. Is that how everybody else does it with Firebird? Yes. I've seen that in a number

Re: [fpc-pascal] Looking for a Firebird book?

2008-04-09 Thread Matt Emson
Michael Van Canneyt wrote: On Wed, 9 Apr 2008, Marco van de Voort wrote: IIRC Mass insertion could bring down the db (slow to an effective DOS to other users) unless you commit the transaction every 1 items or so. Not in my experience: over 600.000 records inserted in 1

Re: [fpc-pascal] Why I?m choosing (Object) Pascal

2008-04-07 Thread Matt Emson
On 7 Apr 2008, at 20:07, Michael Van Canneyt wrote: On Mon, 7 Apr 2008, Ingemar Ragnemalm wrote: Linux works (I did the port myself) but is still a bit rough on the deployment side, so they don't include it officially yet. And if linux works, the other platforms should work also (I took

Re: [fpc-pascal] MacOS and Opaque types

2008-02-22 Thread Matt Emson
Bent Normann Olsen wrote: I'm new to Mac development environment, and I was looking thru the CoreMIDI/MIDIServices.h, to see how much work it's going to take (at least maybe partially) to implement some of the functions to own projects. I hit the wall with some typedef, for example struct

Re: [fpc-pascal] Can you knock my socks off ? Can you mimic Skybuck's/Delphi's Major Breakthrough for code path and memory structure selection ?

2008-02-11 Thread Matt Emson
Peter Vreman wrote: None the less very interesting example. Problem is ofcourse FPC does not support the new Delphi 2007 features. And the big question is how would you port this code to FPC ? Please don't make _your_ problem our problem!!! You knew beforehand that FPC doesn't support these

Re: [fpc-pascal] Multiple inheritance is more powerful than Pascal's interfaces ?

2008-01-25 Thread Matt Emson
Andrey Gusev wrote: This question was posted to fpc-other, yesterday, but seems wrongful, in subject appropriation sense to that maillist. === I wish to introduce some additional (and general) functional to an existing (and foreign) freepascal's unit. I wouldn't to introduce any my own

Re: [fpc-pascal] property or public

2008-01-21 Thread Matt Emson
Joao Morais wrote: Damien Gerard wrote: On Jan 21, 2008, at 2:52 PM, Joao Morais wrote: Damien Gerard wrote: I have (it would seem) a stupid question :) We have TStringList vars. User can do what he want with it. Which one is the stupid or the better way to do it ? TMyClass = class(TObject)

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Matt Emson
Vinzent Hoefler wrote: On Friday 18 January 2008 11:39, Bee wrote: I used to use this feature on Turbo Delphi Explorer. But since I totally switch to FPC/Laz and Ubuntu, I really missed this feature on FPC. :( No offense, but maybe this is a good time to start becoming a serious

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Matt Emson
Daniël Mantione wrote: Op Fri, 18 Jan 2008, schreef Bee: Both compilers [CAN] use the UCSD Pascal unit system, I have added a missing word from that statement I think. which, as of today is still one of the best modular programming systems. That is the base to start from. No, no it is

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Matt Emson
Vinzent Hoefler wrote: On Friday 18 January 2008 12:35, Bee wrote: Namespaces are too flat and simply not powerful enough to justify the implementation and maintenance effort. And units are better because...? I would take Namespaces over the crippled '80's unit notation any day. Units

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Matt Emson
Michael Van Canneyt wrote: On Fri, 18 Jan 2008, Matt Emson wrote: What is the difference ? The second one saves on typing, which is a plus in my book ? Right.. confusion over verbosity. Given two units called Constants.pas, which one is the correct unit? Given a unit called Utils.pas

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Matt Emson
Marco van de Voort wrote: Michael Fuchs wrote: But how can fpc find the unit which contains this namespace? I think better is: Namespace = unit name = file name It is easier to allow a dot in the unit name than writing code, which search all units for the right naemspace. The

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Matt Emson
Marco van de Voort wrote: However again, as far as I understand partial classes (Class Helpers in Delphi.NET), for this you need a registration system again because you need to compile all units that might use class X so that they auto import all units with classhelpers for unit X. (or you have

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Matt Emson
Michael Fuchs wrote: But how can fpc find the unit which contains this namespace? I think better is: Namespace = unit name = file name It is easier to allow a dot in the unit name than writing code, which search all units for the right naemspace. The filename would be MyAPI.Blah.pas as you

Re: [fpc-pascal] Classes with abstract methods

2008-01-14 Thread Matt Emson
Graeme Geldenhuys wrote: On 14/01/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote: Is there a way to abort the compilation in this cases instead of a warning ? Currently not. If you want to be that strict, then use Interfaces instead of Abstract classes I always found (and

Re: [fpc-pascal] Extension .pp or .pas

2008-01-11 Thread Matt Emson
Graeme Geldenhuys wrote: As far as I know .pp is the old 'classical' file extension. .pas is the new more widely know (I think) extension for Object Pascal. I prefer .pas personally. I had never seen .pp before FPC. In all the Delphi/Turbo Pascal I'd used, it was always .pas. On the Mac

Re: [fpc-pascal] Arrays of objects

2007-10-31 Thread Matt Emson
Adrian Maier wrote: Hello, I'm seeking for advice about which is the best way to hold an array of class instances I need to access the elements using its position (like a regular array) , and also i'd like the structure to grow when I add more elements TObjectList If you want specific non

Re: [fpc-pascal] Arrays of objects

2007-10-31 Thread Matt Emson
Marco van de Voort wrote: Adrian Maier wrote: VArray: array of TSomeClass; begin SetLength(VArray, 10); // now you have VArray[0] .. VArray[9]; SetLength(VArray, 20); // now you have [0] .. [19]; // Length(VArray) = 20 // for I := 0 to Pred(Length(VArray)) is a valid

Re: [fpc-pascal] FPC and JAVA

2007-10-26 Thread Matt Emson
Krishna wrote: Another thing, the code produced for the winemulator target is x86 code or arm code? Depends. The Visual Studio 2003 emulator is x86. Based on the VirtualPC core product. The Visual Studio 2005.. um.. I don't remember. I know Microsoft provide an ARM emulator that runs dog slow.

Re: [fpc-pascal] FPC and JAVA

2007-10-26 Thread Matt Emson
Krishna wrote: On 10/26/07, Matt Emson [EMAIL PROTECTED] wrote: We are talking about Symbian OS here. For linux and windows mobile devices, I understand you can use FPC directly, right? Sorry, you said Winemulator. I read windows emulator not emulator for windows. My bad

Re: [fpc-pascal] D language and Object Pascal

2007-10-11 Thread Matt Emson
Marco Ciampa wrote: Yes, it's so sad to see people that waste time reinventing the wheel... To be fair to Walter, you have to look at his history. He wrote a lot of different compiler implementations over the years - this is pretty much what he's been doing *since* the time of Turbo Pascal.

Re: [fpc-pascal] D language and Object Pascal

2007-10-10 Thread Matt Emson
Jilani Khaldi wrote: Hi All, just curious about the D language (http://www.digitalmars.com/d/index.html), I read some articles on the site, downloaded the compiler... and wrote some little examples. Well, many of the things that the author presented as new and hot features are already

Re: [fpc-pascal] Halt() bypassed try..finally block

2007-09-13 Thread Matt Emson
Michael Van Canneyt wrote: On Thu, 13 Sep 2007, Graeme Geldenhuys wrote: Hi, Is that correct behavior? When calling Halt() somewhere inside a try..finally block, it _doesn't_ execute the finally code. This is by design. Halt finalizes the units and then exits. Yeah, I always used

Re: [fpc-pascal] writing programs for non Intel Processors

2007-05-18 Thread Matt Emson
The Motorola MPx220 runs a 200-MHz Texas Instruments OMAP 1611 processor, which is a a 32bit ARM v5 with a ARM926EJ-S core. It runs Windows 2003 Smartphone though, so I'm guessing the answer is a little more tricky - probably no. M - Original Message - From: Pianoman To:

Re: [fpc-pascal] writing programs for non Intel Processors

2007-05-18 Thread Matt Emson
Why no? Because Windows CE Win32. Smartphone more so. However, the word probably conveyed my doubt that I had all the facts. There you go. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] How to know if a class implements a method

2007-05-18 Thread Matt Emson
Any idea how I know if a class, in a class pointer, overrides a virtual method? Eg: snip vfooclass := tboo1; // vfooclass doesn't implement sample. vfooclass := tboo2; // vfooclass implements sample. You need to implement a virtual method, even if it does nothing. Are you sure you're

Re: [fpc-pascal] How to know if a class implements a method

2007-05-18 Thread Matt Emson
So, at this moment I know that I can: 1. Use a safe, magic and efficient way, but I need to know if it exists; 2. Create a light instance using vfooclass.NewInstance method; 3. hack the vmt. Which approach do you use? I have worked with a bespoke OPF a few years ago. The way we got around

[fpc-pascal] A randon posting on the Borland web server

2007-03-30 Thread Matt Emson
Has anyone seen this: a randon posting on the Borland web server... anyone care to relieve the poor fellow ;-) ? This is how FPC window looks on my monitor at it's maximum size. Any idea/way to make it bigger? http://www.exsotron.com/exs_pics/bucket/freepascal.jpg; He seems to be refering to

Re: [fpc-pascal] A randon posting on the Borland web server

2007-03-30 Thread Matt Emson
The picture link is dead, but in general it is simply a matter of increasing terminal/dosbox fontsize. Odd, works okay for me... Okay, I'll post this ;-) M ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Fpc running in Zeta?

2007-03-29 Thread Matt Emson
But is there such a thing as a free download of beos? BeOS R5 PE - runs from a 500MB virtual partition - http://bebits.com/app/2680 BeOS MAX - installs to a hard disk, a new version is in BETA - http://bebits.com/app/3892 MAX is your best bet. BeOS is quite picky with hardware though. Mainly

Re: [fpc-pascal] Fpc running in Zeta?

2007-03-29 Thread Matt Emson
The wikipedia article about zeta doesn´t look very promissing: http://en.wikipedia.org/wiki/Magnussoft_ZETA That's a bit political thing. Bernd Kortz is the guy that licensed the code from Palmsource/Access. He's the guy we need to worry about ;-) As porting FPC to BeOS for PowerPC is

Re: [fpc-pascal] Fpc running in Zeta?

2007-03-29 Thread Matt Emson
What´s wrong with codewarrior? They don´t like to release assemblers??? That's Metrowerks for you. They *never* seem to produce assemblers. But, with the Apple platform, you had MPW, so that wasn't an issue. Else where ... ah.. problem! ___ fpc-pascal

Re: [fpc-pascal] Fpc running in Zeta?

2007-03-27 Thread Matt Emson
Free Pascal 1.0.10 was released with a Beos-port, developed by Carl Eric Codère. However, Carl stopped with FPC development, and nobody took over, so the Beo-port had to be discontinued. Not to contradict you, but version 2.11 is available from here: http://bebits.com/app/4321 (which basically

Re: [fpc-pascal] C++ Name Mangling

2007-03-15 Thread Matt Emson
Does Symbian use PE? Yes, Symbian uses PE. Symbian : EPOC 32 by another name ;-) Ummm ... I would like to avoid that, but it seams that it´s easier to use a c wrapper in fact. The effort is larger, but you really do get a more stable and portable solution. It doesn't tie you to a specific

Re: [fpc-pascal] Pascal is alive!!??

2007-02-26 Thread Matt Emson
Most of your arguments point to something like VB3 To clarify, I mean in language complexity. In VB 3, one could (with little extra knowledge) code in BASIC quite quickly. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Pascal is alive!!??

2007-02-26 Thread Matt Emson
[explaining classes is not really harder than program/unit] I disagree with this part. Sure, you will get questions of about programs/units, but the purpose of the keywords belonging to them is way easier to explain than public, static and class. To a complete novice, there's not really

Re: [fpc-pascal] Pascal is alive!!??

2007-02-26 Thread Matt Emson
Well, let's do the standard: Pascal: program Hello_World; begin WriteLn ('Hello world.'); end. Class: What does program mean? Does the name matter? Does it have to be the same as the executable? Why is there a colon at the end of the line - isn't the begin end at

Re: [fpc-pascal] Windows--Linux library

2007-02-14 Thread Matt Emson
The fonctions use to manage sockets under Linux and Windows are different. Rather than nasty ifdefs, you might want to look at the Free Pascal port of the Synapse Sockets library. It will abstract away your OS differences and pushes support of the network code away from your hands.

Re: [fpc-pascal] 2.1 version

2006-12-18 Thread Matt Emson
Another source of info might be http://www.freepascal.org/mantis/changelog_page.php Though it gives quite a lot of info, that page also fails with the following error (just now, maybe not always?) : Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 35 bytes) in

Re: [fpc-pascal] Implementing a true Singleton - Can we decrease thevisibility of a method?

2006-12-11 Thread Matt Emson
I use singletons in the following cases. The problem with using singletons in this way is that they're not [very] thread safe. You end up needing a locking mechanism that gets tiring very quickly. I can't offer you a better solution, but I have worked on a project where it was a real problem,

Re: [fpc-pascal] RE: [lazarus] Article on Pixel.

2006-12-11 Thread Matt Emson
I don't know all that much about graphics, but (Jedi-)SDL is a great 2D and 3D library that uses OpenGL. It can also use other platform dependant graphic engines like DirectX on Windows. JEDI SDL is a Delphi (ObjectPascal) binding to SDL created by the JEDI project (actually, I used to work

Re: [fpc-pascal] Implementing a true Singleton - Can we decrease thevisibility of a method?

2006-12-08 Thread Matt Emson
On 8 dec 2006, at 10:55, Graeme Geldenhuys wrote: I still don't know why we can't decrease visibility in Free Pascal. Is there some internal language design that prevents it? At least Borland explicitly says you cannot do that:

Re: [fpc-pascal] fpdoc and three packages

2006-11-29 Thread Matt Emson
Hi Graeme - sorry to be slightly off topic, but is tiOPF working with FPC now? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpdoc and three packages

2006-11-29 Thread Matt Emson
Yes, for a year now... Been using it in a commercial application since January. Cool.. and it works with Lazarus? I looked at tiOPF, but went with instant objects becauuse it had better Delphi 5 support. tiOPF is cross platform too? M ___

Re: [fpc-pascal] fpdoc and three packages

2006-11-29 Thread Matt Emson
Delphi 5 support has been removed in tiOPF version 2, but version 1 is still available on request. Anybody still using tiOPF v1 is highly recommended to upgrade to tiOPF v2. No, I used v1. I looked at how much work a backport to D5 would be. Mostly it was routines missing from the Delphi RTL

Re: [fpc-pascal] Problem with multiple inheritance

2006-11-03 Thread Matt Emson
How can I work around this? I mean, how can I redesign my idea to make it work with FP? Note that Qt requires that all methods to receive events, and signals be from objects (I cannot use a procedure to receive events). In Delphi, I'd do it through interfaces. Delphi has this neat little

Re: [fpc-pascal] Problem with multiple inheritance

2006-11-03 Thread Matt Emson
In the future, make this kind of comments in private, Would you listen any more gracefully? not in the middle of a technical discussion. It was related to the discussion. It was also a small proportion of the rest of the email. 24 lines, only 4 related to this outburst. You are overreacting.

Re: [fpc-pascal] fpc arm big endian help

2006-10-23 Thread Matt Emson
- Original Message - From: Terry Kemp [EMAIL PROTECTED] To: fpc-pascal@lists.freepascal.org Sent: Monday, October 23, 2006 11:14 PM Subject: [fpc-pascal] fpc arm big endian help Hi all I'm working on some code for the NSLU2 'slug'. How do I get ppcarm to compile in big endian mode?

Re: [fpc-pascal] fpc arm big endian help

2006-10-23 Thread Matt Emson
Ooops.. this time with a reply.. prt0.o is a bit of assembler IIRC... is it compiled for bigendian? That looks to be your issue. Part of the RTL is in little endian format and needs to be recompiled. ___ fpc-pascal maillist -

Re: [fpc-pascal] Data exchange between programs

2006-09-06 Thread Matt Emson
I have 2 FPC programs running on a Linux machine, is there an easy way to exchange a few data between these programs (I do not want to use disk operations). I was thinking of using environment variables, but I cannot find a way to change environment variables from a program. MMap? Unix domain

Re: [fpc-pascal] TurboExplorer

2006-09-05 Thread Matt Emson
http://www.borland.com/downloads/download_turbo.html - Original Message - From: Leonardo M. Ramé [EMAIL PROTECTED] To: fpc-pascal@lists.freepascal.org Sent: Tuesday, September 05, 2006 8:37 PM Subject: [fpc-pascal] TurboExplorer It looks like TurboExplorer wait time is finished

Re: [fpc-pascal] Delphi ShareMem -DLL-pchar

2006-09-05 Thread Matt Emson
Can anyone comment on the Delphi unit ShareMem and if FPC ever did any work to incorporate what this Delphi unit is doing for DLL shared memory managment? I'm looking so far, at the docs on creating a memory manager, and at the strings unit, which has some pchar utilities in it. I don't use

Re: [fpc-pascal] AsciiZ confusion

2006-08-31 Thread Matt Emson
As noted, the Delphi Program integrates a DLL stub which forces me to make calls using it's pre-defined Variants Only format. I'm not clear why you need to have a FPC DLL between a PB DLL and Delphi... this part makes no sense. If you need to, dynamically load the DLL. If you are exporting

Re: [fpc-pascal] Typecasting by accident

2006-05-15 Thread Matt Emson
No. Typecasts, as any other aspect of a language, has to have rules. AFAIR this cast in Delphi would require another cast from AnsiString to Pointer. And if typed pointers is enabled would require another cast from Pointer to TObject. Nope. The C style cast is not type safe. Using the as

Re: [fpc-pascal] Typecasting by accident

2006-05-14 Thread Matt Emson
Weird, I wouldn't expect OBJFPC mode to allow automatic conversion from AnsiString to Pointer... Um... raise Not_Now (Exception_Message); It's a CAST dude! Exception_Message is being case as Not_Now. That should work fairly well in most dialects.t M

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-19 Thread Matt Emson
Smaller than FPC ? That shouldn't differ too much, I think. Delphi's optimizer is superior to FPC currently. Delphi has another 10 - 15 years and paid developers on top of FPC, so this can be expected, I guess. And the compiler is just sooo fast. Delphi 2005 gives 1.48MB for the mside.exe

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-19 Thread Matt Emson
debugger, fine. However do not blame your dislike of the Delphi debugger on your personal debugging preferences. I've been using Delphi commercially since 1998, or there abouts, and the debugger is perfectly acceptable. The So can you confirm that looking at variables that are up the stack

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-19 Thread Matt Emson
If it ain't broke, don't fix it. Well, compared with other commercial compilers it is broken ;) Heh, well when I can do what I am currently able to do in Delphi in an FPC based IDE, we'll talk again, yes? ;-) ___ fpc-pascal maillist -

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-19 Thread Matt Emson
Because of the superior functionality valgrind offers, I've installed vmware at my pc at work and compile sometimes my programs with gcc (usually developed with MSVC) to find memory leaks, dangling pointers etc. Hmmm... so GCC produces the exact same output as MSVC now? I don't think so. All

Re: [fpc-pascal] another fpc RAD: MSEide

2006-04-18 Thread Matt Emson
MSEgui has a distinct advantage over Lazarus. It compiles under Delphi. Just tried it. Fiddled with one or two lines in the code, but I got the IDE to compile and run and then built a small hello world app that also ran. Pretty impressive really. M Hi, Movie: = For those who did not

Re: [fpc-pascal] Object pascal a Modern Language

2006-03-04 Thread Matt Emson
Not wishing to make this OT, but... Talk to them about targets that c# does not reach, like *BSD, Mac OS X, Sparc, etc =) Um.. *cough* Portable.NET, *cough* Mono. Both will get you on to most of those platforms. Don't assume Microsoft needs all the answers. You can certainly compile under

Re: [fpc-pascal] Object pascal a Modern Language

2006-03-04 Thread Matt Emson
Not so fresh, since it's the people that designed Delphi which designed C# and .NET, so actually you are doing more of the same. Nothing is fresh in IT. OP originated (so I understand, at least partially) with additions to Pascal for MacOS. God only knows what will happen now that Borland is

Re: [fpc-pascal] AnsiStrings and Memory Management

2005-12-14 Thread Matt Emson
(astonishing that ShortStrings are slower than AnsiStrings in this example in delphi). Not really. Delphi is silently upcasting your shortstrings to AnsiStrings in the background. You would probably have to recompile the VCL to get around this ;-) Hope that helps, M

Re: [fpc-pascal] Boolean expression short-circuit

2005-11-22 Thread Matt Emson
Thanks, I guess I lost the argument :]. Anyway, I guess it wouldn't hurt to clarify that just a little bit in the manual :-/ However, IIRC complete boolean eval (which is what delphi calls it) would blow the code up, as even if Foo was nil, the second half would be evaluated regardless. Maybe

Re: [fpc-pascal] cgi-bin/PSP

2005-11-21 Thread Matt Emson
i was pretty sure there might be some PSP lurkers on this list. You have to be careful here, because there are two competing projects called PSP. One is by a Spanish guy (who wrote the Nemesis Pascal interpreter too) and uses an Object Pascal interpreter to pretty much do the same kind of

Re: [fpc-pascal] single application instance

2005-09-23 Thread Matt Emson
How can I also do it in linux? Use semaphores. There is a semaphore implementation for LINUX, Windows, BeOS and probably most other Unices. Certainly, any platform that conforms to POSIX and/or PThreads will have a semaphore implementation. The mechanics will be different - the idea will be

Re: [fpc-pascal] Freepascal 2.0 for cygwin

2005-08-16 Thread Matt Emson
Is there some posibility to make (compiling) fpc without fpc? Is there some makefile or script in fpc (cvs) to avoid to use a fpc 1.0.0 or 2.0.0 to create a fpc new version? Cygwin runs exclusively on Windows machines... FPC has a Windows port. Whilst I can see the point of a port to Cygwin, I

Re: [fpc-pascal] Extended float to single and pchar types

2005-08-02 Thread Matt Emson
Hi, I have a stdcall reference to a c based dll. called target.dll In c the setup is ... Are you sure it is stdcall? Quite often it's the calling convention that messes up the calling of a C DLL. Could it be safecall or cdecl? Which compiler made the DLL? float Get_l1_BidPriceSingle(void*

[fpc-pascal] Sharp Zaurus ARM port stability?

2005-07-21 Thread Matt Emson
Just laid my hands on a used Zaurus SL5500. I was wondering how stable the Zaurus cross compiler and QT wrapper were? I realise this is slightly off topic, but I remember the developer working on the bindings posted to this list a while back. Any info? TTFN, Matt

Re: [fpc-pascal] Sharp Zaurus ARM port stability?

2005-07-21 Thread Matt Emson
The fpc qte binding demo program shows that it is usable. If however you have problems and think it is binding or fpc related, I am always willing to investigate this. I just did so for someone who had a problem with QLCDNumber, it probably is a small fpc bug concerning passing a double

  1   2   >