Re: [fpc-pascal] IRC channel for FreePascal support ?

2023-04-13 Thread Marc Weustink via fpc-pascal
On 13/04/2023 13:55, Rik van Kekem via fpc-pascal wrote: Op 13-04-2023 om 12:53 schreef Jacob Kroon via fpc-pascal: Thanks for checking, but well, I just got contacted by "Joanna" privately on IRC, this is the chatlog: The following topic might be of interest. You can view it without

Re: [fpc-pascal] Open array in object constructor gives error

2023-01-03 Thread Marc Weustink via fpc-pascal
On 3-1-2023 14:07, Hairy Pixels via fpc-pascal wrote: On Jan 3, 2023, at 3:12 PM, Sven Barth wrote: But then you don't use the type name either. You simply do "o.Create(...)". O I get it now. I didn’t realize you couldn’t create on the type. That breaks my entire design then. It

Re: [fpc-pascal] Windows Volume Control

2022-01-18 Thread Marc Weustink via fpc-pascal
On 15-1-2022 19:02, James Richters via fpc-pascal wrote: Are there functions to check the current volume level and to set the volume with just FPC (not Lazarus) on Windows 10? All I need is the master system volume, not any of the mixer controls. This is possible. Please be aware that you

Re: [fpc-pascal] Crash on Windows for Aarch64 target

2022-01-14 Thread Marc Weustink via fpc-pascal
On 12-1-2022 14:37, Volo Zyko via fpc-pascal wrote: Hello, Some time ago it was announced an experimental support for Windows on Aarch64 (namely in this post https://lists.freepascal.org/pipermail/fpc-pascal/2020-April/057762.html). I tried to build a dll with a proprietary code for that

Re: [fpc-pascal] freepascal.org SSL_ERROR_BAD_CERT_DOMAIN

2022-01-10 Thread Marc Weustink via fpc-pascal
On 10-1-2022 17:45, Marc Weustink via fpc-pascal wrote: On 5-1-2022 10:15, Mattias Gaertner via fpc-pascal wrote: On Wed, 5 Jan 2022 09:40:49 +0200 "Dimitrios Chr. Ioannidis via fpc-pascal" wrote: Hi, Στις 5/1/2022 2:00 π.μ., ο/η Rainer Stratmann via fpc-pascal έγρα

Re: [fpc-pascal] freepascal.org SSL_ERROR_BAD_CERT_DOMAIN

2022-01-10 Thread Marc Weustink via fpc-pascal
On 5-1-2022 10:15, Mattias Gaertner via fpc-pascal wrote: On Wed, 5 Jan 2022 09:40:49 +0200 "Dimitrios Chr. Ioannidis via fpc-pascal" wrote: Hi, Στις 5/1/2022 2:00 π.μ., ο/η Rainer Stratmann via fpc-pascal έγραψε: https://freepascal.org/ the certificate issued for www.freepascal.org and

[fpc-pascal] Lazarus server back online

2021-12-28 Thread Marc Weustink via fpc-pascal
Hi all, It took a bit longer than expected, but I'm happy to inform you that the Lazarus services are back online. For those interested in why it took longer, I'll explain at the end of the message. Marc On 24-12-2021 08:30, Marc Weustink wrote: Hi, On Monday 27 December 9.00 CET (8.00

[fpc-pascal] Lazarus server maintenance

2021-12-23 Thread Marc Weustink via fpc-pascal
Hi, On Monday 27 December 9.00 CET (8.00 GMT) the Lazarus server will be down for maintenance. This affects the following services: * Lazarus website * Lazarus mailinglists * Lazarus online package manager * Lazarus and FreePascal forum Thanks, Marc

Re: [fpc-pascal] How to check if a network is available?

2021-07-02 Thread Marc Weustink via fpc-pascal
On 18-6-2021 13:49, Bo Berglund via fpc-pascal wrote: I would like to know how I can check if a remote network is available, i.e. if the VPN system has succeeded to connect the remote network. I need this in a class that connects an OpenVPN tunnel on demand and takes it down after use.

Re: [fpc-pascal] Initialization of constant record member of pointer type

2020-12-14 Thread Marc Weustink via fpc-pascal
On 4-12-2020 13:01, LacaK via fpc-pascal wrote: Dňa 2.12.2020 o 16:09 Tomas Hajny via fpc-pascal napísal(a): On 2020-12-02 16:01, LacaK via fpc-pascal wrote: Dňa 2.12.2020 o 13:55 Tomas Hajny via fpc-pascal napísal(a): On 2020-12-01 11:39, Ladislav Karrach via fpc-pascal wrote: Because

Re: [fpc-pascal] Return value of StrToHostAddr and StrToHostAddr6 in sockets unit

2020-05-13 Thread Marc Weustink via fpc-pascal
On 12-5-2020 14:56, Marco van de Voort wrote: Op 2020-05-12 om 12:32 schreef Michael Van Canneyt: The names I use here are the libc names, which many other languages also use. Now, StrToHostAddr and StrToHostAddr6 can call the appropriate function, and programs that use those functions

[fpc-pascal] Freepascal/Lazarus forum and Lazarus website outage wrap-up

2020-02-12 Thread Marc Weustink via fpc-pascal
Now that everything seems to be normal, time for a wrap-up, what happened: There were happening 2 things simultaneously - an increased interest(?) from china - one or two bots every second looking for SQL injections. This caused a load on the original server configuration, apache using

Re: [fpc-pascal] OT: what happened with the Lazarus mailing list?

2017-11-28 Thread Marc Weustink
On 25-11-2017 09:29, Lubos Pintes wrote: Hello, I don't know if the problem is somewhere on my side, but the latest message in Lazarus mailing list on gmane.org is from November 17. I also looked into web archive and the situation is the same. And I am unable to find more information about

Re: [fpc-pascal] New feature: IfThen() intrinsic

2016-02-01 Thread Marc Weustink
Sven Barth wrote: Am 01.02.2016 09:26 schrieb "Maciej Izak" >: > > 2016-02-01 8:59 GMT+01:00 Marco van de Voort >: >> >> The only really bad thing is the name, as Florian already said, with the >>

Re: [fpc-pascal] File Descriptor in Windows ?

2015-03-26 Thread Marc Weustink
fredvs wrote: Hello. Sorry to sorry to bother you with that file descriptors again... ;-( There are some answers there on mpg123 forum. They explain that simple stdin/stdout file descriptors would work. Of course all what they explained is in C ;-( OK, but how can i use simple stdin/stdout

Re: [fpc-pascal] fpc in symlinked directory

2014-03-27 Thread Marc Weustink
Michael Van Canneyt wrote: On Wed, 26 Mar 2014, Mattias Gaertner wrote: On Wed, 26 Mar 2014 15:33:38 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: [...] So ? You just need to check the inode. Is there a function to list all files pointing to an inode? Actually, you

Re: [fpc-pascal] Re: Feature proposal: function-based assignment operators

2013-04-02 Thread Marc Weustink
On 28-3-2013 17:52, Jonas Maebe wrote: += does *not* prevent re-evaluating the left side. It is internally translated to x:=x+y and then evaluated like normal. So if x contains a function call with side effects, these side effects are still triggered twice. Is evaluated as x := x + y or as x

Re: [fpc-pascal] 2D Dynamic arrays and BlockRead

2010-12-06 Thread Marc Weustink
On 3-12-2010 17:26, Jürgen Hestermann wrote: andrew.benn...@ns.sympatico.ca schrieb: After using BlockRead to fill a 2D dynamic array, I get an access violation on the very first reference. A 2D array with only one dimension dynamic works OK. What am I missing? Maybe you blundered into the

Re: [fpc-pascal] Extended, Currency and TDateTime memory layout

2010-08-08 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On Fri, Aug 6, 2010 at 4:52 PM, Michael Van Canneyt mich...@freepascal.org wrote: Strange, because tkCurrency exists ? A currency is a Int64, which is the currency amount multiplied by 1. Well, apparently Delphi 6 RTTI thinks that it is a float. Check

Re: [fpc-pascal] a few trivial questions

2010-05-13 Thread Marc Weustink
Jürgen Hestermann wrote: I personally hate 0-based counting because no human counts 0, 1, 2 etc.. so why must computers? Yes. That's my feeling too. Zero-based arrays/lists always generate trouble because of substracting or adding one in many places. It makes code much less readable. Read

Re: [fpc-pascal] TAP-Win32

2010-05-13 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: What does TAP stand for? see http://en.wikipedia.org/wiki/TUN/TAP for some pointers. Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] newbie questions

2010-04-24 Thread Marc Weustink
spir ☣ wrote: On Tue, 20 Apr 2010 01:17:51 +0200 Marc Weustink m...@dommelstein.net wrote: Somehow I get the idea that you mix the definition/use of sets with arrays. Yes, it seems Pascal sets are rather related to enums than collections. I mean they look like packs of kinds of flags, which

Re: [fpc-pascal] newbie questions

2010-04-19 Thread Marc Weustink
spir ☣ wrote: Hello, Total Pascal newbie here. Looked for answers in various references and tutorials, but cannot find. Fore-question: Is there a (free)pascal teaching/learning mailing list? (Like python's tutor list.) If not, is this one a proper place? * How does one declare the type of

Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?

2010-04-19 Thread Marc Weustink
Jonas Maebe wrote: On 19 Apr 2010, at 16:15, Tobias Giesen wrote: This usually means that they were compiled by a previous compiler, or that they use units which have been changed and recompiled since the previous compilation. In that case, the compiler will ignore the precompiled unit and

Re: [fpc-pascal] Published - Public

2010-04-17 Thread Marc Weustink
Martin wrote: procedure TChild.Foo; begin inherited; // or: inerithed Foo; // do more end; I thought that in this last case, the compiler would know, that inherited points to TBase.Foo; and the compiler would optimize the code, to call directly (skipping the VMT) ? But I guess I am

Re: [fpc-pascal] Published - Public

2010-04-16 Thread Marc Weustink
Flávio Etrusco wrote: On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto joshy...@gmail.com wrote: Hello FPC-Pascal, Friday, April 16, 2010, 9:06:45 PM, you wrote: FE Published methods can be found with TObject.MethodAddress, that's how FE the lfm hook event handlers (and why Form event handlers

Re: [fpc-pascal] Implementing an interface force me to add _AddRef, _Release

2010-04-15 Thread Marc Weustink
Zaher Dirkey wrote: On Thu, Apr 15, 2010 at 11:09 AM, Michael Van Canneyt mich...@freepascal.org wrote: {$INTERFACES CORBA} {$INTERFACES CORBA} It is resolved my problem, Is there any limit to use it (except it is not work in Delphi)? You cannot use casts like var a: IMyObject; b:

Re: [fpc-pascal] Published - Public

2010-04-15 Thread Marc Weustink
José Mejuto wrote: Hello FPC-Pascal, If I have a class like: TMyClassPublished=class(TObject) published procedure MyProcedure; virtual; end; And a derived one: TMyClassDerived=class(TMyClassPublished) public procedure MyProcedure; override; end; Is there any difference in the derived

Re: [fpc-pascal] constructor as procvar

2010-03-20 Thread Marc Weustink
David Emerson wrote: How can I obtain a class type variable from an instance? I want to create a second instance of the same descendant class (via the constructor, which will take some parameters and make the new instance unique) Tobject.classtype returns TClass (class of TObject) which I

Re: [fpc-pascal] Re: FPC from subversion without root access

2010-02-20 Thread Marc Weustink
Osvaldo Filho wrote: Thank you. I have my own compiler - files from another computer - not the ubuntu package. How can I say the Make program where are the files of the compiler? They are in: ~/apps/fpc/bin and ~/apps/fpc/lib add ~/apps/fpc/bin to your path ( if you use bash: add the

Re: [fpc-pascal] Re: FPC from subversion without root access

2010-02-18 Thread Marc Weustink
Osvaldo Filho wrote: Sorry: How can I get the FPC subversion installed on my directory? 1) Download form subversion - Ok download them into say ~/fpc/trunk ...) Compile? Create ~/.fpc.cfg? How ? then in ~/fpc/trunk dir run: make all make install PREFIX=~ FPC_VERSION=2.5.1 this will

Re: [fpc-pascal] FPC class syntax was extended to support delphi code

2010-01-14 Thread Marc Weustink
Paul Ishenin wrote: David Emerson wrote: d. What happens with inheritance? d.1. wrt class constants and class vars-- are there separate instances (for lack of a better word) of these, one instance for each descendant? Or is the class var/const only stored once for the ancestor that declares

Re: [fpc-pascal] RE: Possibly a dumb question.... (Jennifer Usher)

2009-12-30 Thread Marc Weustink
Graeme Geldenhuys wrote: 2009/12/28 Vincent Snijders vsnijd...@vodafonevast.nl: It is a bug ans should save that file automatically. And the bug seems to be Windows specific. It works perfectly under Linux, by automatically saving in the /tmp directory. Linux has no manifest :) Marc

Re: [fpc-pascal] Forum merger

2009-12-30 Thread Marc Weustink
dmitry boyarintsev wrote: I'm not sure if forums are to be merged or not, but why not to start an FPC specific thread on Lazarus forum? For example there're a lot of RTL/FCL specific subject, like this one: http://forum.lazarus.freepascal.org/index.php/topic,8272.msg39707/topicseen.html#new

Re: [fpc-pascal] Problem compiling DLL for 64Bit Windows - complete example attached

2009-12-17 Thread Marc Weustink
Lukas Gradl wrote: Hi! I'm having serious troubles compiling a DLL for 64bit Windows. I'm using FPC svn 1 (Ver 2.5.1) on all machines. I tried on WinXP 32bit (works), Vista 64bit (doesn't work), Win7 32Bit (works) and Win7 64bit (doesn't work). rMonitor=packed record ... end;

Re: [fpc-pascal] Forum merger

2009-12-14 Thread Marc Weustink
Bee Jay wrote: We have already merged the wikis, what about merging the forums? I would propose merging into the Lazarus forum. Why don't we make our own forum application using fpWeb (or Powtils or ExtPascal)? Specially dedicated for FPC and Lazarus users. It can be a showcase that pascal

Re: [fpc-pascal] one question FPC

2009-11-15 Thread Marc Weustink
Lidia Stanganelli wrote: Hello, I have a program in Pascal that compiles correctly on windows 32-bit but when I compile on windows 64-bit give me the following errors: Compiling C:\Users\workspacepascal\webutil.pp aamod_elearning.pas(27,38) Error: Identifier not found CONF_FILE Windows 64-bit

Re: [fpc-pascal] Why use pointers to arrays?

2009-10-12 Thread Marc Weustink
Graeme Geldenhuys wrote: On 11/10/2009, Andrew Brunner andrew.t.brun...@gmail.com wrote: FPC forces the ^ operator while accessing structures as pointers. Delphi didn't force it and I even suspect that memory leaks can result in NOT using the ^ to denote the reference to the pointer rather

Re: [fpc-pascal] object.ClassInfo.Create

2009-06-18 Thread Marc Weustink
Martin wrote: Just got a question, to ensure I understand thinks correctly. Let's start with stuff I definitely know (or think so). Destructors are virtual/overriden, because they are called on the instance, and the instance may be assigned to a variable foo: Tobject, which would call

Re: [fpc-pascal] compiling lazarus : custombitmap.inc(293, 49) Error: absolute can only be associated with a var or const

2009-04-09 Thread Marc Weustink
Benedikt Schindler wrote: Hi, when i try to compile lazarus i get a error message absolute can only be associated with a var or const did someone have an idea why this happens? You need either a svn version of Lazarus or a compiler 2.3.1 see r12878 Marc

Re: [fpc-pascal] PWideChar vs. ^

2009-03-13 Thread Marc Weustink
Marc Santhoff wrote: Hi, maybe this is a dumb question, but: If I have a variable declared as var s: PWideString; why is an exception (AV) thrown when using something := s^; but not when using something := PWideChar(s); ? You're mixing things up. A Widestring is a

Re: [fpc-pascal] My favourite missing feature

2008-12-23 Thread Marc Weustink
Mark Morgan Lloyd wrote: There seem to be a number of people currently making outrageous suggestions about missing features or how FPC could best be repackaged and promoted, so since it's the season of good will I trust that folk will tolerate this one from me. There's been a recent thread

Re: [fpc-pascal] Array [THandle] of pointer

2008-12-23 Thread Marc Weustink
Andrew Brunner wrote: Following Setup: Ubuntu 8.10 x64 FPC 2.2.3 (latest and greatest) Lazarus (Latest and greatest) I'm seeing an anomaly with reading/writing to an Array[THandle] of Pointers. TMyStruct=record Index:integer; end; PMyStruct=^TMyStruct; TMyList = Array[THandle] of

Re: [fpc-pascal] My favourite missing feature

2008-12-23 Thread Marc Weustink
. The () indicates groups. each group is the string extracted from the pattern, and can be used (that's the /1/ and /2/ that he wrote). This entire thingy called regular expression or regex for short. Ido On Wed, Dec 24, 2008 at 1:17 AM, Marc Weustink m...@dommelstein.net wrote: Mark Morgan

Re: [fpc-pascal] number of cpu cores

2008-12-13 Thread Marc Weustink
Mattias Gaertner wrote: At the moment I have the attached function. It returns only 4 on a 2 x quad core Mac. Maybe someone can test under windows? returns 4 on a quadcore xp64 Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] fpImage resample via interpolation

2008-11-30 Thread Marc Weustink
Mattias Gaertner wrote: On Fri, 28 Nov 2008 15:45:08 +0100 Vinzent Höfler [EMAIL PROTECTED] wrote: Von: Mattias Gärtner [EMAIL PROTECTED] I'm curious: who needs more than 13 different image interpolations? 13 different users, of course. ;) That was a rhetorical question, wasn't it? Not

Re: [fpc-pascal] Debugger interaction in FP IDE and Lazarus

2008-09-06 Thread Marc Weustink
leledumbo wrote: Peter Vreman wrote: The idea to implement this and reuse some Lazarus code has been around for a couple of years. But it is not an easy task after a couple of quick investigations. That is also the reason why it has not been started yet. You are welcome to implement such an

Re: [fpc-pascal] Translate C to Pascal

2008-08-11 Thread Marc Weustink
Micha Nelissen wrote: Mattias Gärtner wrote: How to translate this: struct a; Isn't this a forward declaration? So sometime later it needs to declare 'struct a { ... };' ? If not, can't it be translated as: a: record end; ? Marc (not a Cist)

[fpc-pascal] Article writers wanted.

2008-07-14 Thread Marc Weustink
Hi, recently I spoke to Detlef Overbeek, editor of the Blaise Pascal magazine (http://blaisepascal.eu) and he asked me if there would be people interested in writing an atricle about Freepascal or Lazarus or combination of both. Since i'm not that big writer, i'll aks it here too. Marc

Re: Summary on Re: [fpc-pascal] Unicode file routines proposal

2008-07-01 Thread Marc Weustink
Florian Klaempfl wrote: [..some of my thoughts..] this suits a construct I saw somewhere: type SomeString = type String(CP_KOI8); Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Unicode file routines proposal

2008-07-01 Thread Marc Weustink
Martin Schreiber wrote: On Tuesday 01 July 2008 18.32:30 Mattias Gärtner wrote: In this routines length(widestring), widestring[index], pwidechar^, pwidechar[index], pwidechar + offset, pwidechar - pwidechar and inc(pwidechar)/dec(pwidechar) are used often. This can't be done with utf-8

Re: [fpc-pascal] Pointers in Pascal!!

2008-05-01 Thread Marc Weustink
Mattias Gaertner wrote: On Wed, 30 Apr 2008 01:22:47 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Alan Krause wrote: Hans Mårtensson wrote: But that would not work after the pointer was used and then it's memory freed. So a better way might be: Always when declaring pointers do it this way

Re: [fpc-pascal] Pointers in Pascal!!

2008-04-29 Thread Marc Weustink
Alan Krause wrote: Hans Mårtensson wrote: But that would not work after the pointer was used and then it's memory freed. So a better way might be: Always when declaring pointers do it this way: var p: ^sometype = nil; Then in stead of using the freemem, define your own procedure:

Re: [fpc-pascal] Pascal postscript reading library

2008-04-24 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On Wed, Apr 23, 2008 at 4:32 AM, Krishna [EMAIL PROTECTED] wrote: Hmm... vague your mail is. What kinda interpretation? If all you want is to slurp the text then it might be possible but then Postscript is a full blown programming language and people

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-24 Thread Marc Weustink
Graeme Geldenhuys wrote: Marc Weustink wrote: with quoted identifiers you can do whatever you want. One of the examples I use why you don't want to use them is: SELECT select FROM from WHERE where and and BETWEEN between and and HAVING having ORDER BY order by hehehe... I don't use quoted

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-20 Thread Marc Weustink
Graeme Geldenhuys wrote: On 19/04/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote: That is just sick! It is. Courtesy of MS-Access users... That was the first to support it, AFAIK. (although access uses [] instead of , as far as I remember) That's is sick! And yes, MS-Access uses the

Re: [fpc-pascal] connection problem

2008-03-31 Thread Marc Weustink
JoshyFun wrote: Hello Jesus, Saturday, March 29, 2008, 7:19:34 PM, you wrote: JRA For fpc repository I use JRA http://svn.freepascal.org/svn/fpc/trunk and it JRA doesn't work anyway, I don't get the PROPFIND problem though, after I type JRA svn update, the command doesn't do anything. From

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Marc Weustink
Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer; Method1; Method2; end; PMyObj = ^TMyObj; Yes, objects (by specification)

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Marc Weustink
Vinzent Hoefler wrote: On Tuesday 05 February 2008 12:02, Tiziano De Togni wrote: Michael Van Canneyt ha scritto: The advantage is mainly that you can have objects on the stack. sorry, but don't understand exactly what this means exactly. The main difference is here: -- 8 -- procedure

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Marc Weustink
Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Marc Weustink: Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer

Re: [fpc-pascal] Converting StrLCopy to widestrings

2007-11-18 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On Nov 17, 2007 1:25 PM, Marc Weustink [EMAIL PROTECTED] wrote: First question, why is the copying needed ? Why isn'tlpStrFile := PWChar(FileNameWide); simply enough ? IMO, you're copying way to much. That variable is only valid on the scope

Re: [fpc-pascal] Converting StrLCopy to widestrings

2007-11-17 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hello, In a LCL code we have: var FileNameBuffer: PChar; FileNameWide: WideString; FileNameWideBuffer: PWideChar; FilterBuffer: WideString; begin {$ifdef WindowsUnicodeSupport} if UnicodeEnabledOS then FileNameWideBuffer :=

Re: [fpc-pascal] Help making code unicode capable

2007-11-10 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hello, I have a small piece of code on LCL which I have found hard to convert to unicode: lpStrFilter := StrAlloc(Length(Filter)+1); StrPCopy(lpStrFilter, Filter); There is a big chance that this is an inheritence of the pre 1.0 fpc times. At

Re: [fpc-pascal] Help making code unicode capable

2007-11-10 Thread Marc Weustink
Mattias Gaertner wrote: On Sat, 10 Nov 2007 15:44:54 +0100 Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Thanks, I arrived at this: var FilterBuffer: WideString; ... FilterBuffer := Utf8Decode(Filter); lpStrFilter := GetMem(Length(FilterBuffer) * 2 + 2);

Re: [fpc-pascal] FPC now 3rd in shootout

2007-11-05 Thread Marc Weustink
S. Fisher wrote: --- Marco van de Voort [EMAIL PROTECTED] wrote: http://shootout.alioth.debian.org/gp4/benchmark.php?test=alllang=all The reason is that D's mean degraded from 1.40 to 1.43. I wonder how that could happen. They change often. Clean is also quite variable. I assume the

Re: [fpc-pascal] more questions on storage

2007-09-27 Thread Marc Weustink
Mattias Gaertner wrote: On Thu, 27 Sep 2007 12:38:13 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: [EMAIL PROTECTED] (Marco van de Voort) wrote: A cast is really a cast. IOW the cast pchar(ansistring) is mostly a no-op. Traditional C code then usually treats the #0 as end of

Re: [fpc-pascal] Usage of TInterfacedObject. Automatic release?

2007-05-26 Thread Marc Weustink
Luiz Americo Pereira Camara wrote: Cesar Romero wrote: Luiz Americo, Anyway, calling manually _Release avoid the leak and i will stay with it for now (I hope did not break anything). It can work for that case, but I think that is not a good ideia. If you are using a TInterfacedObject

Re: [fpc-pascal] gcc beats fpc again

2007-05-24 Thread Marc Weustink
Daniël Mantione wrote: Op Wed, 23 May 2007, schreef Bisma Jayadi: No C programs have been submitted recently. It is probably the new broken scoring system. Is Shootout using new scoring system? How did you know that? See the long thread on the forum. It penalizes Pascal because we have a

Re: [fpc-pascal] Release of fpc-2.1.4 aka 2.2.0-beta

2007-05-20 Thread Marc Weustink
bartek wrote: Hi, I tried to compile my current project with the new compiler (2.1.4). This resulted in the following error: -8- /home/bartek/Dev/units/vmath.pp(435,29) Error: Can't take the address of constant expressions -8- -8- destructor

[fpc-pascal] Freepascal and Lazarus at the Dutch HCC dagen

2006-11-23 Thread Marc Weustink
Hi, Just to let you know that Freepascal and Lazarus are present at the Dutch HCC dagen the coming 3 days at the PascalGG stand. Marco, Joost and I will be there. CU, Marc Location (Dutch) http://www.delphigg.nl/Hcc/HalAlleStands.html ___ fpc-pascal

Re: [fpc-pascal] Problem with multiple inheritance

2006-11-02 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hello, I was trying to split the o-o wrappers around Qt procedural wrappers in 2 parts. One that depends on Lazarus and another that can be used with only Free Pascal. So I have some classes like this: TQtWidget = class(TObject) TQtFrame =

Re: [fpc-pascal] Eye Candy Contest

2006-11-01 Thread Marc Weustink
Michael Van Canneyt wrote: On Wed, 1 Nov 2006, Marc PERTRON wrote: Hi, I'd like to show to some people that FreePascal can do good graphical and efficient things :o) So I organise an eye candy contest, with some simple rules, and I'll give three rewards ($150, $100 and $50) for the

Re: [fpc-pascal] Problem with string conversion

2006-10-20 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/20/06, Vincent Snijders [EMAIL PROTECTED] wrote: This should be WideText := GetMem(Size*2); because you get the number of characters, and the number of bytes 2* number of characters. Thanks, it works, but I still have doubts. 1) On linux I

Re: [fpc-pascal] 2.1.1 new protected

2006-08-12 Thread Marc Weustink
Martin Schreiber wrote: On Friday 11 August 2006 20.35, Marc Weustink wrote: What's the alternative? To have most of internal procedures public with a comment for internal use only, I really don't like it, or to have all code in a single file, I don't like it too. What about friend units

Re: [fpc-pascal] 2.1.1 new protected

2006-08-11 Thread Marc Weustink
Martin Schreiber wrote: On Friday 11 August 2006 13.58, Mattias Gaertner wrote: On Fri, 11 Aug 2006 13:42:49 +0200 Florian Klaempfl [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Recently the behaviour of the 'protected' keyword has changed in fpc 2.1.1. Now I wonder how can I fix the

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-20 Thread Marc Weustink
Steve Williams wrote: Florian Klaempfl wrote: I'am currently thinking about implementing OpenMP support in FPC. However, there is currently (to my knowledge) no pascal syntax defined for OpenMp support. Do you think we can find a common syntax to simplify things for users? I've some ideas how

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-20 Thread Marc Weustink
Steve Williams wrote: Marc Weustink wrote: Steve Williams wrote: I would suggest something along the lines of the C/C++ implementation, but using the Pascal form of compiler directives. Using some of the documented examples in the v2.5 spec: Example A.1.1: procedure a1(n: Integer

Re: [fpc-pascal] Common OpenMP syntax?

2006-07-18 Thread Marc Weustink
Florian Klaempfl [EMAIL PROTECTED] wrote: I'am currently thinking about implementing OpenMP support in FPC. Is this similar as polyphinic C# ? (you gave me a link a while ago) What I'm puzzeled with, usually an API specifies the interface to an external library, where here it seems a spec