Re: [fpc-pascal] Re: Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How? [SOLVED]

2011-08-09 Thread Torsten Bonde Christiansen
on a Ubuntu 10.04 x86_64 like my system. Kind regards, Torsten Bonde Christiansen ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How? [SOLVED]

2011-08-09 Thread Torsten Bonde Christiansen
On 2011-08-09 12:59, Reinier Olislagers wrote: On 9-8-2011 12:21, Torsten Bonde Christiansen wrote: On 2011-08-09 10:46, Reinier Olislagers wrote: My pleasure - though I haven't finished yet may run into things. It seems you're setting up a 32 bit environment. Both my Linux (Debian) and OSX

[fpc-pascal] Location of fpvectorial

2011-11-10 Thread Torsten Bonde Christiansen
no use the lazarus package, but rather the one from fpc. Is it best to use the lazarus/components version or the fpc version? Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread Torsten Bonde Christiansen
is included but you are right that it is not compiled. On Thu, Nov 10, 2011 at 9:04 AM, Torsten Bonde Christiansen t...@epidata.dk wrote: The wiki page states to download from lazarus trunk, but the example files there do no use the lazarus package, but rather the one from fpc. Please file

[fpc-pascal] Compilation error in crosscompiling lNet to arm-linux

2011-11-20 Thread Torsten Bonde Christiansen
aborted Error: /usr/bin/ppcrossarm returned an error exitcode (normal if you did not specify a source file to be compiled) Is this a bug in the compiler? Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Compilation error in crosscompiling lNet to arm-linux

2011-11-20 Thread Torsten Bonde Christiansen
On 2011-11-20 21:36, Jonas Maebe wrote: On 20 Nov 2011, at 21:30, Torsten Bonde Christiansen wrote: I get the following error when crosscompiling lNet to arm-linux. $ fpc -MObjFPC -Sgim -CX -O2 -Parm -gs -gl -vew -l -Fi../lib/sys -Fu../lib -Fu. -FUlib/arm-linux/ -dLNET_BASE -fPIC

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

2011-11-25 Thread Torsten Bonde Christiansen
between two competing unit. But how do I resolve this? Regards, Torsten Bonde Christiansen. On 2011-08-11 11:54, Ludo Brands wrote: My main doubt here is if androidprt0.as is really required, which would mean that I can only produce android libraries if I make changes to the compiler

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

2011-11-25 Thread Torsten Bonde Christiansen
On 2011-11-25 13:38, Ludo Brands wrote: /usr/lib/fpc/2.4.4/units/arm-linux/rtl/dllprt0.o: In function `_haltproc': androidprt0.as:(.text+0x0): multiple definition of `_haltproc' ./libandroidprt0.so:androidprt0.as:(.text+0x0): first defined here /usr/lib/fpc/2.4.4/units/arm-linux/rtl/dllprt0.o:

[fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
help me. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-11 22:57, ik wrote: On Sun, Dec 11, 2011 at 23:35, Torsten Bonde Christiansen t...@epidata.dk mailto:t...@epidata.dk wrote: Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-11 23:30, Jonas Maebe wrote: On 11 Dec 2011, at 23:18, Torsten Bonde Christiansen wrote: So in the following example foo would not be visible (neither as foo nor bar) to other program (eg. a C-program) unless I added an *exports* section? Correct. See also http

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-12 00:48, nore...@z505.com wrote: Ok, thanks for clearifying that. I guess it's going to be a lot of include files instead... :) -Torsten. Why do you need include files in your case? You can put the units in the uses clause of your library. Because it is still going to give me a

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Torsten Bonde Christiansen
On 2011-12-12 20:04, Jonas Maebe wrote: On 12 Dec 2011, at 19:56, nore...@z505.com wrote: procedure proc1; stdcall; begin writeln('hello'); end; exports proc1; procedure proc2; stdcall; begin writeln('hello 2'); end; exports proc2; end. Notice how I put exports in several places...

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Torsten Bonde Christiansen
Well maybe ExportAll compiler feature should be suggested? But please try this unit Unit1; {$mode objfpc}{$H+} interface procedure proc1; stdcall; procedure proc2; stdcall; implementation procedure proc1; stdcall; begin writeln('hello'); end; exports proc1; procedure proc2;

[fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
://svn.freepascal.org/svn/fpc/tags/release_2_6_0) Compiler Date : 2012/01/19 Compiler CPU Target: x86_64 FPC Compiled with extra options -g -gl -godwarfsets, Kind regards, Torsten Bonde Christiansen ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
On 2012-05-10 10:45, t.wieckow...@gmail.com wrote: it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double(a),double(b),double(0)). best regards Tomek ___ fpc-pascal

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
On 2012-05-10 11:16, Jonas Maebe wrote: Torsten Bonde Christiansen wrote on Thu, 10 May 2012: On 2012-05-10 10:45, t.wieckow...@gmail.com wrote: it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double

Re: [fpc-pascal] std::map equivalent?

2012-06-13 Thread Torsten Bonde Christiansen
On 2012-06-12 15:38, Xiangrong Fang wrote: Hi, Is there a std::map equivalent for free pascal? Thanks, Shannon If you wish to use generics you can try TFPGMap from the unit fgl. It does about the same. Kind regards, Torsten Bonde Christiansen

[fpc-pascal] DOM and namespaces with prefix

2012-06-19 Thread Torsten Bonde Christiansen
AND maintain the namespace + prefix in later elements? Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-25 Thread Torsten Bonde Christiansen
On 2012-06-23 01:01, Daniel Gaspary wrote: On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen t...@epidata.info wrote: DDIInstance := XMLDoc.CreateElementNS('ddi:instance:3_0', 'DDIInstance'); DDIInstance.Prefix := 'ns1';// this gives me: ns1:DDIInstance xmlns:ns1

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Torsten Bonde Christiansen
___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal FCL_base does have one: avl_tree but so does LCL, which is named AvgLvlTree (found in LazUtils) I hope that helps... ;) Kind regards, Torsten Bonde Christiansen

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Torsten Bonde Christiansen
On 2013-02-12 16:36, Michael Van Canneyt wrote: On Tue, 12 Feb 2013, Torsten Bonde Christiansen wrote: On 2013-02-12 16:13, Leonardo M. Ramé wrote: Hi, I would like to know if there's a standard tree structure where each node is a TObject. With standard I mean, in a standard package

[fpc-pascal] FPC_JVM compilation fails on trunk

2013-04-26 Thread Torsten Bonde Christiansen
Hi List. I'm trying to follow this guide: http://wiki.freepascal.org/FPC_JVM/Building But when i reach the point where i do the actual compilation fail with the following output: torsten@epidata:~/FreePascal/fpc-trunk$ make all crossinstall CROSSOPT=-O2 -g CPU_TARGET=jvm OS_TARGET=android

Re: [fpc-pascal] FPC_JVM compilation fails on trunk

2013-04-26 Thread Torsten Bonde Christiansen
On 2013-04-26 22:53, Jonas Maebe wrote: On 26 Apr 2013, at 22:37, Torsten Bonde Christiansen wrote: I'm trying to follow this guide:http://wiki.freepascal.org/FPC_JVM/Building But when i reach the point where i do the actual compilation fail with the following output: torsten@epidata

[fpc-pascal] Generic a Clone method

2009-06-16 Thread Torsten Bonde Christiansen
, what memory copy function should I use? Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Generic a Clone method

2009-06-16 Thread Torsten Bonde Christiansen
Martin Friebe wrote: There is Object.InstanceSize, which sounds as if it may be what you are looking for. But you have a bigger problem than that. Thanks - i'll try that. If any member (object variable) is of a ref-counted type (that is strings and dynamic arrays), then any memory copy

[fpc-pascal] FastMM4 revised.

2009-06-17 Thread Torsten Bonde Christiansen
Hi. I found in the fpc-pascal archive a short thread on someone converting FastMM4 to FPC. Does anyone know if this succeeded or if the curret (4.92) version of FastMM4 can be used with fpc? Regards, Torsten Bonde Christiansen. ___ fpc-pascal

Re: [fpc-pascal] FastMM4 revised.

2009-06-17 Thread Torsten Bonde Christiansen
Werner Bochtler wrote: If there is any interest, I could provide a patched (but not thoroughly testet!) version 4.92 which is based on extensions originally made by Adrian Veith for version 4.46. Additionally my patched version also contains some modifications to make FastMM PIC-safe. As

[fpc-pascal] fpcdoc: cannot compile documentation.

2009-07-13 Thread Torsten Bonde Christiansen
no idea what the problem is Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Clipboard tutorial.

2009-07-17 Thread Torsten Bonde Christiansen
Hi all. I've been spending som time now, looking for documentation on how to utilize the clipboard, but so far I have had no luck. Does anyone know of a page that has a short introduction/tutorial, preferably something that will work cross-platform wise. Kind regards, Torsten Bonde

Re: [fpc-pascal] Clipboard tutorial.

2009-07-17 Thread Torsten Bonde Christiansen
Graeme Geldenhuys wrote: Torsten Bonde Christiansen wrote: Does anyone know of a page that has a short introduction/tutorial, preferably something that will work cross-platform wise. What GUI toolkit are you using and what platform? Or is it a console based application, which normally

[fpc-pascal] VAL and i18n

2009-07-24 Thread Torsten Bonde Christiansen
= 2, i.e. that comma is the problem. Stepping through the code, it seem that in "fpc_Val_Real_ShortStr" the decimal separator is hardcoded to ".". Is this a bug or is this just the way "val" is intended to work? Kind regards, Torsten Bonde Christiansen.

Re: [fpc-pascal] VAL and i18n

2009-07-24 Thread Torsten Bonde Christiansen
Oops, it's http://www.freepascal.org/docs-html/rtl/sysutils/strtofloat.html of course. Or http://www.freepascal.org/docs-html/rtl/sysutils/trystrtofloat.html if you don't want an exception if the conversion fails. It look like Function TryStrToFloat(Const S : String; Out Value: Extended):

[fpc-pascal] Nil'ing a dynamic string array...

2009-09-16 Thread Torsten Bonde Christiansen
; Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Variants and Extended

2009-09-17 Thread Torsten Bonde Christiansen
be glad if someone could give me some feedback on this. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Variants and Extended

2009-09-17 Thread Torsten Bonde Christiansen
; Torsten Bonde Christiansen wrote: Dear list. Over the last couple of days i've been trying out different things with variants, but I always seem to end up in the same situation: When working with conversion between Extended and Variant, a small part

Re: [fpc-pascal] Variants and Extended

2009-09-17 Thread Torsten Bonde Christiansen
Marco van de Voort wrote: Note that extended is x86 specific, and windows has been multi-architecture since the early nineties. Does this also mean that Extended does not work on MAC PowerPC? -Torsten. ___ fpc-pascal maillist -

Re: [fpc-pascal] Variants and Extended

2009-09-17 Thread Torsten Bonde Christiansen
Ok, Thanks for the answer. -Torsten. It compiles, but it is only 64 bits, like a double. type extended = double; You can check this at compile time by doing {$IFDEF FPC_HAS_TYPE_EXTENDED} Vincent ___ fpc-pascal maillist -

[fpc-pascal] Is svn2.freepascal.org down?

2009-10-09 Thread Torsten Bonde Christiansen
I cant get in contact with the repository on svn2.freepascal.org (no ping reply either). Can someone give it a kick again... Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Torsten Bonde Christiansen
power is not as good as a BNF grammar. There are some language constructs that is simply not posible with a LL(1) parser, when comparing to the LALR(1). I don't have the details with me right now, but have a decent book on compiler construction at home. Kind regards, - Torsten Bonde Christiansen

Re: [fpc-pascal] Why can't 64bit FPC cross-compile 32bit

2009-11-09 Thread Torsten Bonde Christiansen
-compile to 32-bit linux and 32-bit windows on the same 64-bit linux machine. (that includes the FPC itself and Lazarus) There is a guide on the wiki here: http://wiki.freepascal.org/Cross_compiling Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal

[fpc-pascal] Subversion server making hickups...

2009-11-24 Thread Torsten Bonde Christiansen
, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Subversion server making hickups...

2009-11-24 Thread Torsten Bonde Christiansen
Vincent Snijders wrote: The disks on svn2.freepascal.org was full, I removed some old files, can you retry? Great - working again! Thanks. -Torsten. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] Cross compiling: from linux to Darwin or Mac OS X

2010-03-25 Thread Torsten Bonde Christiansen
. the link to odcctools does not exist anymore, and searching the web for opendarwin/odcctools does not provide much help. So my question is if anyone have tried to do this recently and have a newbie guide on how to set this up. Kind regards, Torsten Bonde Christiansen

Re: [fpc-pascal] Cross compiling: from linux to Darwin or Mac OS X

2010-03-26 Thread Torsten Bonde Christiansen
for all of our supported OS and CPU targets. Regards, Torsten Bonde Christiansen. Patrick Chevalley wrote: I try and give up. What I use now is a Mac virtual machine running on my Linux x64. It's too bad you have to turn to the dark side of the Internet for instruction on how to do

[fpc-pascal] Accessing static field using properties.

2010-04-12 Thread Torsten Bonde Christiansen
the static field through a property. There is no documentation stating that this is im-/possible, so I'm not sure whether this is a bug or just me writing horrible code... ;) Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] FPClassChart

2010-04-22 Thread Torsten Bonde Christiansen
Hi List, Is the fpclasschart program still maintained? I get a runtime A/V trying to create a class chart from one of my source files. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] FPClassChart

2010-04-22 Thread Torsten Bonde Christiansen
2301 of src/pparser.pp $004020AE line 569 of fpclasschart.pp $00403171 line 759 of fpclasschart.pp I hope it helps. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] FPClassChart

2010-04-22 Thread Torsten Bonde Christiansen
Michael Van Canneyt wrote: On Thu, 22 Apr 2010, Torsten Bonde Christiansen wrote: I get a runtime A/V trying to create a class chart from one of my source files. Can you isolate the problem a bit more ? The best I can give is the output when it crashes. If you wish I can put

[fpc-pascal] Is static strings prosible?

2010-04-23 Thread Torsten Bonde Christiansen
as a nil pointer, but something is wrong when it tries do dereference the reference pointer in fpc_ansistr_decr_ref. Should I report this is a bug or is static ansistrings not posible? Kind regards, Torsten Bonde Christiansen. { TBase } {$static on} TBase = class

[fpc-pascal] Documentation differences...

2010-06-23 Thread Torsten Bonde Christiansen
and not the other. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Documentation differences...

2010-06-23 Thread Torsten Bonde Christiansen
On 2010-06-23 10:29, Graeme Geldenhuys wrote: Op 2010-06-23 10:15, Torsten Bonde Christiansen het geskryf: The official FPC documentation is: (http://www.freepascal.org/docs-html/rtl/) FPC does not show skeleton or partial documented units in it's documentation. It is all

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Torsten Bonde Christiansen
to detect, because not everyone uses it. Any additional ideas ? Most distros also include their name in the kernel, so using uname -a could also give a hint. But AFAIK there is no common place where all distros store the name. Kind regards, Torsten Bonde Christiansen

[fpc-pascal] evaluation of set constant

2010-12-22 Thread Torsten Bonde Christiansen
is possible. Kind regards, Torsten Bonde Christiansen. EpiData Association. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] evaluation of set constant

2010-12-23 Thread Torsten Bonde Christiansen
On 2010-12-22 14:50, Jonas Maebe wrote: On 22 Dec 2010, at 14:15, Torsten Bonde Christiansen wrote: Is it possible to create a constant of a set that is based on an evaluation of other constants? (using fpc 2.4.2) A basic case could look like this: type TMyType = (a, b, c ,d); TMyTypes

[fpc-pascal] Skipping an the inherited of an ancestor

2011-01-14 Thread Torsten Bonde Christiansen
Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling inherited on a method? A small example of what i'm trying to achieve below (and don't mind the incomplete TB class implementation). Kind regards, Torsten Bonde Christiansen

Re: [fpc-pascal] Skipping an the inherited of an ancestor

2011-01-15 Thread Torsten Bonde Christiansen
On 2011-01-14 23:05, Max Vlasov wrote: On Fri, Jan 14, 2011 at 10:38 PM, Torsten Bonde Christiansen t...@epidata.dk mailto:t...@epidata.dk wrote: Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling inherited on a method? Hmm, don't know

Re: [fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread Torsten Bonde Christiansen
, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Android and cwstring

2013-07-31 Thread Torsten Bonde Christiansen
Hi, I'm trying to create a library for use in an android application, but i'm having a hard time getting it to work correctly. More specifically i cannot get the library to use the cwstring unit. Below you see a working example of a library that works fine (the log entry is generated) when

Re: [fpc-pascal] Android and cwstring

2013-08-01 Thread Torsten Bonde Christiansen
On 2013-07-31 20:57, Sven Barth wrote: On 31.07.2013 20:55, Felipe Monteiro de Carvalho wrote: On Wed, Jul 31, 2013 at 8:51 PM, Sven Barth pascaldra...@googlemail.com wrote: The cwstring of Android uses the ICU library libicuuc.so. Is this available in the NDK for one of the higher API

Re: [fpc-pascal] Android and cwstring

2013-08-01 Thread Torsten Bonde Christiansen
On 2013-07-31 20:57, Sven Barth wrote: On 31.07.2013 20:55, Felipe Monteiro de Carvalho wrote: On Wed, Jul 31, 2013 at 8:51 PM, Sven Barth pascaldra...@googlemail.com wrote: The cwstring of Android uses the ICU library libicuuc.so. Is this available in the NDK for one of the higher API

Re: [fpc-pascal] Android and cwstring

2013-08-01 Thread Torsten Bonde Christiansen
On 2013-08-01 21:58, Sven Barth wrote: On 01.08.2013 20:43, Torsten Bonde Christiansen wrote: On 2013-07-31 20:57, Sven Barth wrote: On 31.07.2013 20:55, Felipe Monteiro de Carvalho wrote: On Wed, Jul 31, 2013 at 8:51 PM, Sven Barth pascaldra...@googlemail.com wrote: The cwstring of Android

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-28 Thread Torsten Bonde Christiansen
On 2013-12-19 21:23, Marco van de Voort wrote: Hello Changes that may break backwards compatibility are documented at: http://wiki.freepascal.org/User_Changes_2.6.4 This page does not yet exists? Is this correct? Regards, Torsten Christiansen. ___

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 12:54, Torsten Bonde Christiansen wrote: On 2013-12-19 21:23, Marco van de Voort wrote: Hello We have placed the first release candidate of the Free Pascal Compiler version 2.6.4 on our ftp servers. You can help improve the upcoming 2.6.4 release by downloading and testing

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 13:26, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: On 2013-12-30 13:01, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: On 2013-12-19 21:23, Marco van de Voort wrote: Hello We have placed the first

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 14:33, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: And if you provide fixes, make sure the testsuite still runs OK. I am not sure this case was tested at all - should i try implementing

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 14:33, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: Bug reported as: http://bugs.freepascal.org/view.php?id=25469 Including patch and program with test. Thank you, I will have a look ASAP

[fpc-pascal] Bug in enumerators 2.6.4

2014-03-21 Thread Torsten Bonde Christiansen
which i only forward declared. If the TFoo and TBar classes are moved above the TBarListEnumerator the code compiles without any problem. Should I add this to the bugtracker? Regards Torsten Bonde Christiansen. ps. my compiler details: torsten@epidata:~$ ppcx64 -i Free Pascal Compiler version

[fpc-pascal] Bug in enumerators 2.6.4

2014-03-22 Thread Torsten Bonde Christiansen
which i only forward declared. If the TFoo and TBar classes are moved above the TBarListEnumerator the code compiles without any problem. Should I add this to the bugtracker? Regards Torsten Bonde Christiansen. ps. my compiler details: torsten@epidata:~$ ppcx64 -i Free Pascal Compiler version

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-22 22:34, hinsta...@yandex.ru wrote: What you do this for? Using override directive makes no sense in this case, so I suggest you just don't use it. If you don't use it, the descendant enumerator will still work like intended I Think override makes perfect sense in this case. I

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-22 17:33, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: The problem seem to be that the a descendant enumerator class overriding a virtual method cannot return a class which i only forward declared. If the TFoo and TBar classes are moved above

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-24 10:38, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: Should I add this to the bugtracker? Yes. The code with Tfoo and TBar above also shouldn't not compile, at least not in Delphi mode. Should I report this as a bug where this construct

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-24 10:57, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: Yes. A case where a check is missing doesn't automatically mean a feature has been implemented where that check is not needed. Overriding methods with declarations that don't match

Re: [fpc-pascal] FieldAddress

2015-02-03 Thread Torsten Bonde Christiansen
On 2015-02-03 12:30, silvioprog wrote: On Tue, Feb 3, 2015 at 6:17 AM, Torsten Bonde Christiansen t...@epidata.info mailto:t...@epidata.info wrote: Hi, What does it take for a class to access a field using FieldAddress(...)? I have tried with both typeinfo on/off ({M

[fpc-pascal] FieldAddress

2015-02-03 Thread Torsten Bonde Christiansen
Hi, What does it take for a class to access a field using FieldAddress(...)? I have tried with both typeinfo on/off ({M+}), placing the field in private/protected/public/published sections but to no avail. My simple code is: TMyObject = class private FRef: TMyObject; procedure

[fpc-pascal] Optimization switches

2015-01-14 Thread Torsten Bonde Christiansen
Hi. By chance I was looking at help page for compiler switches regarding optimazations: http://www.freepascal.org/docs-html/prog/progsu58.html#x65-640001.2.58 And I wonder if the switches below LEVEL3 (eg. REGVAR, UNCERTAIN, ...) must be explicit applied during a compile or if they are

[fpc-pascal] NTP

2015-01-29 Thread Torsten Bonde Christiansen
Hi, Does anyone have experience on how to get the current date/time of an NTP server? Regards, Torsten. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] NTP

2015-01-29 Thread Torsten Bonde Christiansen
On 2015-01-29 16:08, Graeme Geldenhuys wrote: On 2015-01-29 08:10, Torsten Bonde Christiansen wrote: Does anyone have experience on how to get the current date/time of an NTP server? If you use the Indy components, they have an example included. Great - thanks. I will have a look tomorrow

[fpc-pascal] Common class type

2015-03-20 Thread Torsten Bonde Christiansen
Hi. Is there method in fpc to find the highest common class-type of two derived classes? Regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

[fpc-pascal] Internal error 200611031

2015-04-30 Thread Torsten Bonde Christiansen
Hi. I was playing around with class helpers in my code and suddenly ran into an internal error on compilation. I can try to make a sample project, but is this a known problem or did I stumple upon an unknown bug. I have tried googling the error, but nothing related shows up. My compiler

[fpc-pascal] Endian Hex numbers

2015-04-13 Thread Torsten Bonde Christiansen
Hi list. Please forgive me if this is too dumb a question, but: When using a const written in hex, is the order significant? Ie. will eg. $1F01 result in the same value (7937) on both big-endian and little endian machines? Likewise, if I use an absolute reference to a variable is the

[fpc-pascal] For .. in .. loops with sets and valued enums

2015-06-19 Thread Torsten Bonde Christiansen
Consider the following program: program Project1; type TMyEnum = ( a = 1, b = 3, c = 5 ); TMySet = set of TMyEnum; var Item: TMyEnum; begin for Item in TMySet do Writeln('Value = ', Integer(Item)); end. I would expect the output of the program to contain the values

[fpc-pascal] Bootstrapping on Mac

2015-08-19 Thread Torsten Bonde Christiansen
Hi List. I'm trying to build the compiler (svn checkout) from scratch using the bootstrapper binary ppcuniversal on a MAC running Mavericks (OS 10.9.x) I start the buildprocess with the following line: make all PP=~/Downloads/ppcuniversal CPU_TARGET=i386 OS_TARGET=darwin OPT=-gl -gw

Re: [fpc-pascal] Bootstrapping on Mac

2015-08-19 Thread Torsten Bonde Christiansen
On 2015-08-19 13:59, Jonas Maebe wrote: On 19/08/15 13:41, Torsten Bonde Christiansen wrote: I'm trying to build the compiler (svn checkout) from scratch using the bootstrapper binary ppcuniversal on a MAC running Mavericks (OS 10.9.x) The only supported/hassle-free way to bootstrap FPC

Re: [fpc-pascal] IS operator and library created objects

2015-08-20 Thread Torsten Bonde Christiansen
On 2015-08-20 08:06, Sven Barth wrote: Am 20.08.2015 03:42 schrieb Fabio Luis Girardi fluisgira...@gmail.com mailto:fluisgira...@gmail.com: Currently, I'm doing a small program that uses libraries, objects and the operator IS, that is know that this operator fails because of duplication of

[fpc-pascal] OpenSSL

2015-11-17 Thread Torsten Bonde Christiansen
Hi all. In my program I need to use the OpenSSL unit from fpc (packages/openssl) AND I also need to use the lNET package. However my problem is that lNET also include a file named openssl.pas, although it seems to be never that the one included in packages it does not have the same methods

[fpc-pascal] Generic with inheritance - fpc 3.0

2015-11-30 Thread Torsten Bonde Christiansen
Hi. The docs for 3.0 does not directly mention generics and inheriting from another generic class, but I tried out with the code below. It compiled, ran and worked fine but since the docs do not explicit mention it as a posibility I am a little reluctant to go forward using this strategy if

Re: [fpc-pascal] OpenSSL

2015-11-18 Thread Torsten Bonde Christiansen
On 2015-11-18 13:32, Joost van der Sluis wrote: Op 18-11-15 om 08:00 schreef Torsten Bonde Christiansen: On 2015-11-17 18:25, Serguei TARASSOV wrote: On 17/11/2015 15:24, fpc-pascal-requ...@lists.freepascal.org wrote: In my program I need to use the OpenSSL unit from fpc (packages/openssl

Re: [fpc-pascal] OpenSSL

2015-11-17 Thread Torsten Bonde Christiansen
On 2015-11-17 18:25, Serguei TARASSOV wrote: On 17/11/2015 15:24, fpc-pascal-requ...@lists.freepascal.org wrote: Hi all. In my program I need to use the OpenSSL unit from fpc (packages/openssl) AND I also need to use the lNET package. However my problem is that lNET also include a file named

Re: [fpc-pascal] Writing floating points to steams

2016-01-13 Thread Torsten Bonde Christiansen
On 2016-01-13 10:06, Mark Morgan Lloyd wrote: Serguei TARASSOV wrote: On 13/01/2016 08:47, fpc-pascal-requ...@lists.freepascal.org wrote: On 2016-01-12 10:45, Torsten Bonde Christiansen wrote: Since TStream doesn't have any native WriteFloat/Double and the likes, some conversion is needed

Re: [fpc-pascal] Writing floating points to steams

2016-01-12 Thread Torsten Bonde Christiansen
On 2016-01-12 12:38, Michael Van Canneyt wrote: On Tue, 12 Jan 2016, Torsten Bonde Christiansen wrote: On 2016-01-12 12:04, Graeme Geldenhuys wrote: On 2016-01-12 10:45, Torsten Bonde Christiansen wrote: Since TStream doesn't have any native WriteFloat/Double and the likes, some conversion

[fpc-pascal] FPC 3.0 using clang for cross compile

2016-06-14 Thread Torsten Bonde Christiansen
Hi List. I just recently tried to update the build system for our products in order to use fpc 3.0, but found that when i try to make the cross-compiler for Mac OS, it reports an error on missing: /home/epidata/FreePascal/release_3_0_0/compiler/ppcross386 -dNOMOUSE -Ur -dFPC_USE_LIBC

Re: [fpc-pascal] FPC 3.0 using clang for cross compile

2016-06-15 Thread Torsten Bonde Christiansen
On 2016-06-14 15:34, Jonas Maebe wrote: Torsten Bonde Christiansen wrote: Is there a reason why fpc needs the llvm for cross compiling (I'm building agains OSX 10.5) - it was not need for fpc 2.6.4... http://wiki.freepascal.org/User_Changes_3.0#Default_assembler_for_Darwin

Re: [fpc-pascal] Single threaded application on multicore CPU

2016-06-22 Thread Torsten Bonde Christiansen
On 2016-06-22 09:02, LacaK wrote: Hi *, may be that this question is bit off-topic here, but I am sure, that here are experts, which know answer ;-) I have simple Lazarus/FPC application (with no explicit threads) which does intensive calculations (local thresholding with big window size)

[fpc-pascal] Parser Generator

2016-05-19 Thread Torsten Bonde Christiansen
er version of the program. * TP Yacc/Lex: (included in Free Pascal) Is included with Free Pascal, but the generated code is non-OO, and seems to rely on text-files for input. So if there is anyone out there who knows of such a generator I would be glad to know. Kind regards, Torsten Bonde Ch

Re: [fpc-pascal] Parser Generator

2016-05-23 Thread Torsten Bonde Christiansen
On 2016-05-20 10:58, Marc Santhoff wrote: On Fr, 2016-05-20 at 10:53 +0200, Marc Santhoff wrote: There are some tools I liked very much when dealing with language translation in the past, but they don't fit her. None of them generates ^e "they

Re: [fpc-pascal] Parser Generator

2016-05-23 Thread Torsten Bonde Christiansen
On 2016-05-20 10:40, Carlo Kok wrote: On 2016-05-19 13:10, Torsten Bonde Christiansen wrote: Hi. I am currently looking into integrating a custom language parser into my program and have been searching the web for parser generators that can create Pascal code from a custom language. So far

[fpc-pascal] RTF writer

2016-08-05 Thread Torsten Bonde Christiansen
Hi List. I am looking for at component that can write RTF format, preferably like the TRichMemo: http://wiki.lazarus.freepascal.org/RichMemo but without the need for LCL. In fpc 3.0 there is a RTF reader, but i have not been able to find a writer. Kind regards, Torsten

Re: [fpc-pascal] server down?

2016-10-17 Thread Torsten Bonde Christiansen
On 2016-10-17 17:28, Mattias Gaertner wrote: Hi, On the bug tracker login page http://mantis.freepascal.org/login_page.php?return=%2Fmy_view_page.php%3F I see this text: Do you already have a login at Free Pascal Community? You can use that login here (use your e-mail address as username).

[fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-04 Thread Torsten Bonde Christiansen
ile.Create('/tmp/test.ini'); S := Ini.ReadString('sec1', 'S', 'ZZ'); // S is '' and not ' ' as expected Ini.Free; end. Is this considered a bug or "by design"? Kind regards Torsten Bonde Christiansen ___ fpc-pascal maillist - fpc-pascal@

  1   2   >