Re: [fpc-pascal] char in [range]

2009-12-07 Thread ik
pertness. Ido http://ik.homelinux.org/ On Mon, Dec 7, 2009 at 3:07 PM, Jonas Maebe wrote: > > On 07 Dec 2009, at 14:01, ik wrote: > > I'm using FPC 2.5.1 and I'm trying to do the following: >> >> if not (Char in ['a'..'z']) >> >

[fpc-pascal] char in [range]

2009-12-07 Thread ik
Hello, I'm using FPC 2.5.1 and I'm trying to do the following: if not (Char in ['a'..'z']) however fpc gives me an error of type mismatch for the "in" directive. Why can't I use the in directive on a char ? Thanks, Ido http://ik.homelinux.org/ ___ fp

[fpc-pascal] Preprocessor

2009-12-04 Thread ik
Hello, Is there a way to see a preprocessor of what fpc creates rather then the assembly code so I could see how defines and ifdefs executes (when compiling rtl) ? Thanks Ido http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepas

Re: [fpc-pascal] make CPU_TARGET=arm OS_TARGET=linux ignores both flags

2009-11-27 Thread ik
problem if needed ? Thanks, Ido http://ik.homelinux.org/ On Mon, Nov 23, 2009 at 4:44 PM, Jonas Maebe wrote: > > On 23 Nov 2009, at 15:37, ik wrote: > > Is there a >> way I can make a cross compiler zipinstall to install (at the end) as a >> package in my linux ?

Re: [fpc-pascal] make CPU_TARGET=arm OS_TARGET=linux ignores both flags

2009-11-23 Thread ik
Ido http://ik.homelinux.org/ On Mon, Nov 23, 2009 at 3:06 PM, Jonas Maebe wrote: > > On 23 Nov 2009, at 13:58, ik wrote: > > I'm trying to cross compile FPC 2.5.1 in Linux 64 bit (in Arch Linux) to >> arm >> (eabi) cpu. >> When I'm using >> >&g

[fpc-pascal] make CPU_TARGET=arm OS_TARGET=linux ignores both flags

2009-11-23 Thread ik
Hello, I'm trying to cross compile FPC 2.5.1 in Linux 64 bit (in Arch Linux) to arm (eabi) cpu. When I'm using make CPUT_TARGET=arm OS=TARGET=linux all The make file build an x86_64 units and not arm units. The result is also not ppcrossarm but ppcx64. Only when I'm doing: make OPT='-dFPC_ARMEL

Re: [fpc-pascal] Microsoft SAPI

2009-11-19 Thread ik
> In our previous episode, ik said: > > > > Does anyone know of Pascal binding for Microsoft SAPI that can be used > with > > FPC ? > > maybe convert http://www.blong.com/Conferences/DCon2002/Speech/Speech.htm > > ? > _

[fpc-pascal] Microsoft SAPI

2009-11-19 Thread ik
Hello, Does anyone know of Pascal binding for Microsoft SAPI that can be used with FPC ? Thanks, Ido http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TCustomApplication and QApplication

2009-11-09 Thread ik
I'm using the binding, but it still does not answer the question (that I already found the answer on my own, but I do not like it). In order to work with QT widgets, you must initialize it also by using QApplication and it's family... Why ? well it's the same as TApplication in Lazarus/Delphi, it h

Re: [fpc-pascal] Understanding valgrind logs

2009-11-08 Thread ik
Thanks Ido http://ik.homelinux.org/ On Sun, Nov 8, 2009 at 3:59 PM, Jonas Maebe wrote: > ik wrote on Sun, 08 Nov 2009: > > > Hello all, >> I'm trying to figure out valgrind's log about a program I wrote in Pascal >> using FPC. >> >> I hav

[fpc-pascal] Understanding valgrind logs

2009-11-08 Thread ik
Hello all, I'm trying to figure out valgrind's log about a program I wrote in Pascal using FPC. I have a lot of the following messages:\ ==30348== Mismatched free() / delete / delete [] ==30348==at 0x4C21A18: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==30348==by 0x6F6F8

[fpc-pascal] TCustomApplication and QApplication

2009-11-07 Thread ik
Hello, I'm trying to write a console program that uses some features of QT (webkit and printing from webkit) using FPC 2.2.5 QT have QApplication that I require to use because that I require the printing issues and settings the URL. QApplication is very similar to TCustomApplication in it's appro

[fpc-pascal] XML-RPC and SOAP parsers

2009-11-03 Thread ik
Hello, Are there any parsers for SOAP and XML-RPC (and works in Linux) that written in pure Pascal ? For XML-RPC I'm looking for implementation also for the "name" tag and not only the "value" tag. Thanks, Ido http://ik.homelinux.org/ ___ fpc-pascal m

Re: [fpc-pascal] How to translate this C header struct to Pascal

2009-10-23 Thread ik
it ? Ido http://ik.homelinux.org/ On Fri, Oct 23, 2009 at 10:21 PM, Jonas Maebe wrote: > ik wrote on Fri, 23 Oct 2009: > > You can use bitpacked records: >> >> >> http://www.google.com/codesearch?hl=en&lr=&q=bitpacked+record+package%3Ahttp%3A%2F%2Fpasxlibbind

Re: [fpc-pascal] How to translate this C header struct to Pascal

2009-10-23 Thread ik
You can use bitpacked records: http://www.google.com/codesearch?hl=en&lr=&q=bitpacked+record+package%3Ahttp%3A%2F%2Fpasxlibbind \.googlecode\.com&sbtn=Search Here is an example on how I use it :) Ido http://ik.homelinux.org/ On Fri, Oct 23, 2009 at 8:15 PM, Graeme Geldenhuys wrote: > Hi, > >

Re: [fpc-pascal] array [boolean] and typecasting fail

2009-10-23 Thread ik
The use of 'array[boolean]' does not mean that the array is true or false, but rather '0..1'. You indicate a range, not a boolean behavior. "6 and 4" gives 4, and 4 is above the range of "1" (the highest cell of the array you declared). If you would have cast it to boolean, or provide a better usag

Re: [fpc-pascal] ICONV status

2009-07-23 Thread ik
The example has bug that I reported a while back (with a ptch) that afaik was ignored completely so yo are welcome to look for that bug and add the patch and you'll have (I hope) a working version of the example. The API itself is complete afaik. Ido http://ik.homelinux.org/ On Thu, Jul 23, 200

Re: [fpc-pascal] DBus interface needs an update

2009-05-18 Thread ik
Since you are all into it already, you are welcome to give patches to solve the problems :) Ido On Mon, May 18, 2009 at 2:38 PM, Matthias Klumpp wrote: > Hello! > I've spent hours to get the Pascal DBus interface working for me, but even > the example code does not work. > The DBus package is v

Re: [fpc-pascal] Credit Card validation unit

2009-04-13 Thread ik
://ik.homelinux.org/ On Mon, Apr 13, 2009 at 4:40 PM, Lee Jenkins wrote: > ik wrote: > >> Hello, >> >> I have created a credit card validation unit written in Pascal. >> At the moment you can find it (only) in the following address: >> >> http://github

[fpc-pascal] Credit Card validation unit

2009-04-13 Thread ik
Hello, I have created a credit card validation unit written in Pascal. At the moment you can find it (only) in the following address: http://github.com/ik5/credit-card-library/tree/ I hope that later this week I'll create an archive with a first beta release. Please also read the wiki: http://w

Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 9:15 PM, Graeme Geldenhuys wrote: > On Mon, Apr 6, 2009 at 7:30 PM, ik wrote: > > No, you can not know by the "normal" locale. You must check to see what > is > > the type of locale: > > 1. Hebrew > > 2. Many forms of Arabic (you

Re: [fpc-pascal] LTR or RTL info from users locale settings?

2009-04-06 Thread ik
No, you can not know by the "normal" locale. You must check to see what is the type of locale: 1. Hebrew 2. Many forms of Arabic (you have more then 6 if I remember correctly) That's the only way I know to detect if the locale is RightToLeft or LeftToRight. I started working on something for Lazar

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 4:26 PM, Jonas Maebe wrote: > > On 06 Apr 2009, at 15:15, ik wrote: > > I tried to create an Hello World program in OpenMoko (after creating arm >> fpc). When I try to compile it, ld gives the following error message: >> >> /usr/bin/ld: ERROR:

Re: [fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
No, doing it now Thanks Ido On Mon, Apr 6, 2009 at 4:26 PM, Henry Vermaak wrote: > 2009/4/6 ik : > > Hello, > > > > I tried to create an Hello World program in OpenMoko (after creating arm > > fpc). When I try to compile it, ld gives the following error message:

[fpc-pascal] EABI problems with FPC

2009-04-06 Thread ik
Hello, I tried to create an Hello World program in OpenMoko (after creating arm fpc). When I try to compile it, ld gives the following error message: /usr/bin/ld: ERROR: Source object /usr/lib/fpc/2.3.1/units/arm-linux/rtl/system.o has EABI version 0, but target hello has EABI version 4 I compil

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
http://ik.homelinux.org/ On Mon, Apr 6, 2009 at 11:25 AM, Jonas Maebe wrote: > > On 06 Apr 2009, at 10:16, ik wrote: > > Followed the instructions. Now if I try to do the following: >> make MAKEFILETARGETS=arm-linux all >> >> It still gives me the following e

Re: [fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
On Mon, Apr 6, 2009 at 11:07 AM, Jonas Maebe wrote: > > On 06 Apr 2009, at 10:00, ik wrote: > > I'm trying to create a cross compile to arm-linux. >> I made the following execution: >> >> fpcmake -Tarm-linux -v >> > > Use this instead: > fpcmak

[fpc-pascal] Trying to cross compile to arm-linux and have the following error message: Makefile:186: *** The Makefile doesn't support target x86_64-linux, please run fpcmake first. Stop.

2009-04-06 Thread ik
Hello, I'm trying to create a cross compile to arm-linux. I made the following execution: fpcmake -Tarm-linux -v FPCMake Version 2.0.0 [2009/02/20] Processing Makefile.fpc Targets: "arm-linux" Globals: FPCDIR = "." PACKAGESDIR = "$(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/pack

Re: [fpc-pascal] Compiler raise an EAbort exception

2009-04-04 Thread ik
PM, Jonas Maebe wrote: > > On 04 Apr 2009, at 15:07, ik wrote: > > Am I doing here something wrong (I think I can do better with coping >> between >> open and dynamic array) ? >> > > An unhandled exception in the compiler is always a compiler bug. Please > s

[fpc-pascal] Compiler raise an EAbort exception

2009-04-04 Thread ik
Hello, I'm using FPC from Arch Liunx. I'm trying to do the following code: ... TNumberValidationRecord = record Name: String; CreditType : CreditCardType; Prefix : TCre

[fpc-pascal] A bit off topic: iPhone developers

2009-03-29 Thread ik
Hi, I have came accross the following blog: http://entitycrisis.blogspot.com/2009/03/something-rotten-at-apple.html If someome return your software, Apple return to the client it's money in full, but charge the developer to the same amount + commission. Ido ___

Re: [fpc-pascal] locale solution for unix systems

2009-03-19 Thread ik
hat's why using the libc functions is better. Or am I missing here something in what you are saying ? Ido On Thu, Mar 19, 2009 at 10:44 AM, Graeme Geldenhuys wrote: > On Thu, Mar 19, 2009 at 10:17 AM, ik wrote: >> In order to know what is the active local in Unix/Linux you

Re: [fpc-pascal] locale solution for unix systems

2009-03-19 Thread ik
In order to know what is the active local in Unix/Linux you should check the environment variables. If it was not defined or it stand on "C", then en_US is inplace. Ido On Thu, Mar 19, 2009 at 8:49 AM, Graeme Geldenhuys wrote: > [moved the conversation from Lazarus mailing list] > > > O

[fpc-pascal] GTK 2 problems

2009-02-10 Thread ik
Hello, I'm not sure what is the correct ml for this, so I sent it to both ml, sorry for sending it to the wrong ml. There is a "bug" in gtk2.pas (actually gtkfilesystem.inc) that arrives with FPC. It contains 3 internal functions there where removed from GTK. I found a bug report on this matter:

[fpc-pascal] A bash script file to help bind functions

2009-01-23 Thread ik
Hello, I've created for my own use a bash script file that try to find for me the proper library that contain a function when I create binding for libraries. The script file can be found at http://ik.homelinux.org/projects/files/find_function.sh . I wish to create an addition to Lazarus that will

Re: [fpc-pascal] cross platform version of IsCharAlpha()

2009-01-12 Thread ik
Because it depends on the code page of the system you are using at the moment you parse the char. On Mon, Jan 12, 2009 at 11:19 AM, Graeme Geldenhuys wrote: > On Mon, Jan 12, 2009 at 11:13 AM, ik wrote: >> The problem with such function is that it requires a lot of data to be >>

Re: [fpc-pascal] cross platform version of IsCharAlpha()

2009-01-12 Thread ik
The problem with such function is that it requires a lot of data to be used on a non ANSI table. and you can not use in a unicode implementation the Char type, because a char can be more then one byte. Ido On Mon, Jan 12, 2009 at 11:09 AM, Graeme Geldenhuys wrote: > Hi, > > IsCharAlpha() is a Wi

[fpc-pascal] Warning strftime format

2008-12-31 Thread ik
Hi, I had a very small and nasty bug that I discovered today. I use strftime to format a date, and I accidentally used the %g option rather then %y. The difference is that %g is returning the year of the week (2009 this week), while %y return the year of today (2008). So I wanted to warn everyon

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread ik
http://ik.homelinux.org/ On Wed, Dec 24, 2008 at 12:56 PM, Jürgen Hestermann < juergen.hesterm...@gmx.de> wrote: > To use grep, sed, awk, or a text editor effectively, one must >> understand regular expressions. >> > > Maybe. I never used them (except a text editor of course). Everything you > c

Re: [fpc-pascal] My favourite missing feature

2008-12-23 Thread ik
On Wed, Dec 24, 2008 at 2:35 AM, Marc Weustink wrote: > Mattias Gaertner wrote: > >> On Wed, 24 Dec 2008 01:41:16 +0200 >> ik wrote: >> >> It looks for a date pattern like the follow >>> >>> 10/10/08 and 10/10/2008 with space and then some oth

Re: [fpc-pascal] My favourite missing feature

2008-12-23 Thread ik
It looks for a date pattern like the follow 10/10/08 and 10/10/2008 with space and then some other chars as well. I think if it was with boundaries of begin and/or end (^ and $) it would work even better. The () indicates groups. each group is the string extracted from the pattern, and can be us

Re: [fpc-pascal] My favourite missing feature

2008-12-22 Thread ik
Your regex is awful :) Why not to write it as follows (ruff rewrite): IF cells[2, dateTime] = m|((\d\d)/){2}(\d{2,4})\s.*| THEN BEGIN Anyway, I'm not sure how good idea it will be to have it part of the syntax. Happy Hannuka everyone :P Ido On Mon, Dec 22, 2008 at 7:56 PM, Mark Morgan Lloyd

[fpc-pascal] Kerberos for Free Pascal

2008-12-18 Thread ik
Hello, Have anyone here ever used Kerberos with free pascal, and/or know on a good Pascal binding for using it (including finding name value items) ? Thanks, Ido http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

Re: [fpc-pascal] bitwise generator

2008-12-06 Thread ik
Thanks for the answer. I wanted to do it using Firebird instead of my Pascal code.. now I understand thanks to you, that I need to do it using stored procedure. Thanks, Ido On Sat, Dec 6, 2008 at 4:38 PM, Francisco Reyes <[EMAIL PROTECTED]>wrote: > ik writes: > > > I wish to

[fpc-pascal] bitwise generator

2008-12-06 Thread ik
Hello, I wish to create a firebird generator that does bitwise generation rather then ordinal generator. I mean: 1 2 4 8 16 32 64 128 etc.. Does anyone have knowledge how to create such generation in firebird ? Thanks, Ido http://ik.homelinux.org/ _

Re: [fpc-pascal] Xlib bindings

2008-11-29 Thread ik
k.homelinux.org/ On Sat, Nov 29, 2008 at 10:16 AM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Uh?? That already exists! That's how I managed to write fpGUI , which > talks directly to GDI and XLib. > > See: fpc-2.3.1/src/packages/x11/src > > Regards, > - Grae

[fpc-pascal] Xlib bindings

2008-11-28 Thread ik
Hello, I'm binding xlib to FPC, and the code can be found at http://code.google.com/p/pasxlibbind/ . I'm using the svn for version control over there. I hope that at the end I could merge the project to FPC's x11 package. Ido -- http://ik.homelinux.org/ __

Re: [fpc-pascal] Chinese/Japanese codepages to UTF8

2008-10-07 Thread ik
I'm using iconv (Marco made a unit for it if i remember correctly) that converts one charset to another. Ido On Tue, Oct 7, 2008 at 10:27 AM, EarMaster - Bent Olsen <[EMAIL PROTECTED]> wrote: > Hi, > > The unit LConvEncoding has some functions to convert between codepages and > UTF8, like CP1252T

[fpc-pascal] OT Interview with Almindor (Ales Katona)

2008-10-03 Thread ik
Hi All, I've made an interview with Almindor (Ales Katona), and you can read it at the following address: http://idkn.wordpress.com/2008/10/03/interview-with-ales-katona/ Ido -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] xforms

2008-09-21 Thread ik
Does the library shown when you write ldconfig -v If so, then see if there is an attempt to call a full library name or just the name prior to the .so extension. Ido On Sun, Sep 14, 2008 at 10:26 PM, Gaetano Di Stefano <[EMAIL PROTECTED]> wrote: > hello, > i am a newbie and tryng unsuccesfully t

Re: [fpc-pascal] Blog system written in Pascal

2008-09-04 Thread ik
On Thu, Sep 4, 2008 at 12:38 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Thu, 4 Sep 2008, ik wrote: > >> Hi, >> >> Out of pure curiosity, are there any blog systems written using Pascal (FPC) >> ? > > The Morfik Blog demo is in F

[fpc-pascal] Blog system written in Pascal

2008-09-04 Thread ik
Hi, Out of pure curiosity, are there any blog systems written using Pascal (FPC) ? Thanks, Ido -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] string variant

2008-08-28 Thread ik
Hi Thanks, the text editor indeen placed a unicode char of ' of a non ascii value. Ido On Thu, Aug 28, 2008 at 12:31 AM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > On 27 Aug 2008, at 07:16, ik wrote: > >> I've made the following example: >> >> progra

[fpc-pascal] string variant

2008-08-26 Thread ik
Hello, I've made the following example: program test_variant; uses variatns; var my_var : Variant; begin my_var := 'Hello World'; writeln(my_var); end. The result is Fatal: illegal character "'�'" ($E2) Is it it a bug (fpc 2.2.2) or I'm doing something wrong here ? Thanks, Ido -- http:/

Re: [fpc-pascal] Re: how to catch fpopen() output

2008-07-23 Thread ik
You should use pipes rather then fpSystem for that. Ido On Wed, Jul 23, 2008 at 3:44 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Sorry, I meant catching fpSystem() output... > > > > On Wed, Jul 23, 2008 at 2:40 PM, Graeme Geldenhuys > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have a functi

Re: [fpc-pascal] Error during building DEB package

2008-07-08 Thread ik
There is no version 2.2.2rc1 there is 2.2.2 or 2.2.3. that is, 2.2.2rc is not the version of the compiler but the version of the package. Ido On Tue, Jul 8, 2008 at 4:36 PM, Roland Turcan <[EMAIL PROTECTED]> wrote: > Hello FPC-Pascal users discussions! > > [EMAIL PROTECTED]:/usr/lib/lazarus/fpcbu

Re: [fpc-pascal] Standardization of Modern Pascal

2008-07-07 Thread ik
On Mon, Jul 7, 2008 at 12:22 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Mon, 7 Jul 2008, leledumbo wrote: > >> >> Why Modern Pascal isn't standardized? Take a look at its other brothers and >> sisters, for example C & Fortran. (AFAIK) C has been standardized in 1989 >> and 1999 (th

Re: [fpc-pascal] Pointer address into string

2008-05-05 Thread ik
Look at the Format function, you can tell it to display the address of a pointer in a string. Ido On Sun, May 4, 2008 at 7:21 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: > > Hi ! > > I would like to display in a lazarus application the address of a pointer. > For this, I use : > > var s: str

Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-17 Thread ik
On Thu, Apr 17, 2008 at 6:53 PM, mm <[EMAIL PROTECTED]> wrote: > Rodrigo Palhano a écrit : > > > > On Tue, 15 Apr 2008 19:39:37 -0300, Zaher Dirkey <[EMAIL PROTECTED]> > wrote: > > > > > > > I use GO TO when teaching pascal, but after all i ask them to not use > it, it > > > just a bridge to learni

[fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-15 Thread ik
Hi, I have read in the Linux Kernel malling list some emails, and I found some points made by Linus Torvalds about Pasca; http://idkn.wordpress.com/2008/04/15/the-reason-why-linus-torvalds-hate-pascal/ Ido -- http://ik.homelinux.org/ ___ fpc-pascal ma

[fpc-pascal] cross compile linux x86_64 bit to i386

2008-04-12 Thread ik
Hello, What do I require to do in order to cross compile code I've written on an x86_64 to i386 on Linux ? Thanks, Ido -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/

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

2008-04-07 Thread ik
On Mon, Apr 7, 2008 at 7:04 PM, Ingemar Ragnemalm <[EMAIL PROTECTED]> wrote: > Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > > > > > After a month (a bit more) of writing the above post, I finally > > > > released it in my blog: > > > > http://idkn.wordpress.com/2008/04

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

2008-04-06 Thread ik
On Sun, Apr 6, 2008 at 12:15 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Sun, 6 Apr 2008, ik wrote: > > > Hello, > > > > After a month (a bit more) of writing the above post, I finally > > released it in my blog: > > http://idkn

[fpc-pascal] Why I’m choosing (Object) Pasc al

2008-04-06 Thread ik
Hello, After a month (a bit more) of writing the above post, I finally released it in my blog: http://idkn.wordpress.com/2008/04/06/why-im-choosing-object-pascal/ Ido -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

Re: [fpc-pascal] Generics

2008-03-31 Thread ik
Can you create a small proof of concept, and attach it here ? Ido On Mon, Mar 31, 2008 at 4:27 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: > > Le Mar 31, 2008 à 3:00 PM, Damien Gerard a écrit : > > > > > I would like to make a generic class, like this : > > > > {$mode objfpc} > > > > gener

Re: [fpc-pascal] Generics

2008-03-31 Thread ik
After you define the generic you must first create a type for it: type TMyMcollection = specialize TMCollection; And use the TMyMcollection. It seems like hard work, but it is much better then the way it look on a bad C++ and Java code :) Ido On Mon, Mar 31, 2008 at 4:00 PM, Damien Gerard <[EMA

Re: [fpc-pascal] Initializing Records Automatically

2008-03-24 Thread ik
Since when are you using fillchar on a string in Pascal ? that's a C approach. BTW Most Pascal's string functions will stop on the first #0 they encounter, at least the Delphi's tool that I remember. I think he misses the entire point in his blog. Ido On Mon, Mar 24, 2008 at 1:20 PM, L <[EMAIL

Re: [fpc-pascal] transparent windows on X11

2008-03-17 Thread ik
Copy paste from : http://www.faqs.org/faqs/x-faq/part7/ Subject: 175) How do I create a transparent window? A completely transparent window is easy to get -- use an InputOnly window. In order to create a window which is *mostly* transparent, you have several choices: - the

Re: [fpc-pascal] Looking for a increment time function

2008-03-17 Thread ik
sorry dateutils.pp On Mon, Mar 17, 2008 at 11:45 AM, ik <[EMAIL PROTECTED]> wrote: > Yes, look at dates.pp :) > > Ido > > > > On Mon, Mar 17, 2008 at 11:43 AM, Graeme Geldenhuys > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Does

Re: [fpc-pascal] Looking for a increment time function

2008-03-17 Thread ik
Yes, look at dates.pp :) Ido On Mon, Mar 17, 2008 at 11:43 AM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi, > > Does FPC contain a increment time function? Something like IncMonth(). > > I know I can use DocodeDate/EncodeDate, but that seems such an > inefficient way of doing it. > > B

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
The fix :) On Fri, Mar 14, 2008 at 3:56 PM, ik <[EMAIL PROTECTED]> wrote: > You are correct (I've translated it from an old procedural code of > mine), I'll fix it and resend it > > Ido > > > > On Fri, Mar 14, 2008 at 3:52 PM, Graeme Geldenhuys > &l

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
You are correct (I've translated it from an old procedural code of mine), I'll fix it and resend it Ido On Fri, Mar 14, 2008 at 3:52 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > On 14/03/2008, ik <[EMAIL PROTECTED]> wrote: > > For documentation, look for xli

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
d and bitmap > handling? > > Rainer > > Am Freitag, 14. März 2008 13:42 schrieb ik: > > > > Pure xlib is not that easy. I can give you an old program I made using > > it, but bitmap/keyboard handling is not for "beginners" in X. You must > > unders

Re: [fpc-pascal] Simple X11 program

2008-03-14 Thread ik
Pure xlib is not that easy. I can give you an old program I made using it, but bitmap/keyboard handling is not for "beginners" in X. You must understand better how things works etc.. Ido On Fri, Mar 14, 2008 at 2:49 PM, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > Exists there documentation abou

Re: [fpc-pascal] svn_types.inc(432,73) Error: ; expected, but psvn_error_t found

2008-03-09 Thread ik
, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > On Sat, 8 Mar 2008, ik wrote: > > > Hello, > > > > I have the following code: > > > > type > > psvn_log_message_receiver_t = ^svn_log_message_receiver_t; > >

[fpc-pascal] svn_types.inc(432,73) Error: ; expected, but psvn_error_t found

2008-03-08 Thread ik
Hello, I have the following code: type psvn_log_message_receiver_t = ^svn_log_message_receiver_t; svn_log_message_receiver_t = function (baton : pointer; changed_paths : papr_hash_t; revision : svn_r

[fpc-pascal] assitent with Macro translation

2008-03-06 Thread ik
Hello, I've started binding libsvn to FPC, and I have encountered the following macro that I do not know how to translate: #define APR_ARRAY_IDX(ary,i,type) (((type *)(ary)->elts)[i]) The usage of such macro is as follows: APR_ARRAY_IDX (new_entries, i, const char *); How can I translate the "t

Re: [fpc-pascal] Empty string

2008-03-03 Thread ik
Doesn't FillChar/Word/Byte works for you ? Ido On Mon, Mar 3, 2008 at 6:16 PM, Damien Gerard <[EMAIL PROTECTED]> wrote: > > In any programs, a lot of tests on empty strings are made. > The following made the work : > if Length(s) <> 0 then ... > or > if s <> '' then ... > > In a lot of case

Re: [fpc-pascal] Externalization and inclusion of .PAS files (with GTK+) ?

2008-02-28 Thread ik
Please don't think in PHP or C when you use Pascal... in C the compiler passes multiple times to be able to map between every line of code and locate things on other includes. The pascal's compiler does not include full units inside a big unit. it includes sub implementations: types.inc type M

Re: [fpc-pascal] the libc unit (again)

2008-02-23 Thread ik
On Sat, Feb 23, 2008 at 2:26 PM, Giuliano Colla <[EMAIL PROTECTED]> wrote: > Marco van de Voort ha scritto: > > >>> Hello, > >>> > >>> I find more and more units and components (for Lazarus) that are using > >>> the libc unit. I find it really problematic, because it doesn't exists > >>> for al

[fpc-pascal] the libc unit (again)

2008-02-21 Thread ik
Hello, I find more and more units and components (for Lazarus) that are using the libc unit. I find it really problematic, because it doesn't exists for all platforms and architectures, so why not markring the unit as obsolete for the next FPC release so other developers will have to work with mor

Re: [fpc-pascal] cthreads unit

2008-02-17 Thread ik
Thanks, that works. On Feb 17, 2008 8:50 PM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > On 17 Feb 2008, at 19:42, ik wrote: > > > I'm trying to use the pthread_self function that supposed to be > > existed at cthreads unit. > > However the compiler tell

[fpc-pascal] cthreads unit

2008-02-17 Thread ik
Hello, I'm trying to use the pthread_self function that supposed to be existed at cthreads unit. However the compiler tell me that it does not know "pthread_self". I'm using Linux 64 bit (so I can't use libc), using fpc 2.2.0 . Looking at the source of cthreads.pp, it does have an include for pth

Re: [fpc-pascal] syscalls and fpc

2008-02-16 Thread ik
On Feb 16, 2008 10:03 PM, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > ik schrieb: > > 1. There is a support only for up to 6 parameters (plus the instruction > > itself). > > Which syscall has more parameters? I don't know, but then again, up until now I did

Re: [fpc-pascal] syscalls and fpc

2008-02-16 Thread ik
OK, so why don't you just say that you do not understand ?! Let me start again. I never said that you, Micha, Daniel, Peter, Florian, or even the big bad wolf should implement all of the given syscall functions in the each platform in the world. The design of Do_SysCall at this time is hurting th

Re: [fpc-pascal] syscalls and fpc

2008-02-15 Thread ik
On Feb 16, 2008 2:00 AM, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > Another issue (I should report it as a bug imho) is that Do_Syscall is > > not really usable if you require to use different parameters then > > integer value, for example: PChar. > > > I think that the entire design of the

Re: [fpc-pascal] syscalls and fpc

2008-02-15 Thread ik
other way to use syscall ? Ido On Feb 15, 2008 9:50 PM, ik <[EMAIL PROTECTED]> wrote: > On Fri, Feb 15, 2008 at 8:36 PM, Micha Nelissen <[EMAIL PROTECTED]> wrote: > > ik wrote: > > > Actually the assembler is not that hard to understand :) > > > My point is,

Re: [fpc-pascal] syscalls and fpc

2008-02-15 Thread ik
On Fri, Feb 15, 2008 at 8:36 PM, Micha Nelissen <[EMAIL PROTECTED]> wrote: > ik wrote: > > Actually the assembler is not that hard to understand :) > > My point is, that I don't like the idea of 7 or 20 or 100 amount of > > parameters to give answer to ever

Re: [fpc-pascal] syscalls and fpc

2008-02-14 Thread ik
On Thu, Feb 14, 2008 at 11:02 PM, Micha Nelissen <[EMAIL PROTECTED]> wrote: > ik wrote: > > Hi, > > > > I found that the Do_Syscalls are written in assembly and have only > > limited number of parameters (up to 6). Is there a way to write it > > using

Re: [fpc-pascal] XML Programming..

2008-02-12 Thread ik
What type of programming ? DOM ? SOAP ? XMLRPC ? XSLT ? XSL ? other technologies ? As other replied there is a DOM implementation, but if you require different technology then please tell us. Please note that XML is a hough subject on it's own. Ido On Feb 11, 2008 3:15 AM, <[EMAIL PROTECTED]> wr

[fpc-pascal] syscalls and fpc

2008-02-10 Thread ik
Hi, I found that the Do_Syscalls are written in assembly and have only limited number of parameters (up to 6). Is there a way to write it using array of TSysParam instead of having 7 different functions ? Another question is, is there a way to use it witthout writing assembly, like using it in lib

Re: [fpc-pascal] lul.pas does not compile with fpc 2.2.0

2008-02-09 Thread ik
It's simple, you declared a prototype of a class, so you do not need to declare the entire structure of the class. type Tpenis = class; and that's it Ido On Feb 9, 2008 10:04 PM, Skybuck Flying <[EMAIL PROTECTED]> wrote: > Hi, > > The following simple and valid Delphi code does not compile wi

Re: [fpc-pascal] a call on 64-bit testing of fpGUI

2008-02-02 Thread ik
Hi, It seems that you was able to solve the issue with the latest update. Thanks Ido On Feb 2, 2008 12:23 AM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > On 01/02/2008, ik <[EMAIL PROTECTED]> wrote: > > On Feb 1, 2008 11:03 PM, Graeme Geldenhuys <[EMAIL PROTECTED]&

Re: [fpc-pascal] a call on 64-bit testing of fpGUI

2008-02-01 Thread ik
On Feb 1, 2008 11:03 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > On 01/02/2008, ik <[EMAIL PROTECTED]> wrote: > > 2. Font select is compiled but I have a sig serv on procedure > > TMainForm.CreateFontList; > > Could you try what Giuliano suggested. Changing

Re: [fpc-pascal] a call on 64-bit testing of fpGUI

2008-02-01 Thread ik
On Feb 1, 2008 10:33 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > On 01/02/2008, ik <[EMAIL PROTECTED]> wrote: > > > > 1. It seems that label does not have the color property, at least FPC > > does not find it. > > TfpgLabel as a TextColor and Backgr

Re: [fpc-pascal] a call on 64-bit testing of fpGUI

2008-02-01 Thread ik
Hi I've tested every example existed. Two issues: 1. It seems that label does not have the color property, at least FPC does not find it. 2. Font select is compiled but I have a sig serv on procedure TMainForm.CreateFontList; Other then that, thinks works really great You've made a really grea

Re: [fpc-pascal] distinct types and type identifier

2008-01-30 Thread ik
type TfpgColor = type longword; means that you have a new type in the same *range* of longword. That means that you can assign the same number range, but if you have a variable that is a longword, and you wish to assigned the value to a TfpgColor, then you must cast it, or the compiler will tell

Re: [fpc-pascal] MaskEdit

2008-01-27 Thread ik
ce it on the screen, so you can not see it. Unless I didn't understand something in your question. > > ik schrieb: > > > On Jan 27, 2008 6:25 PM, Marek Nožka <[EMAIL PROTECTED]> wrote: > > > >> Hallo > >> > >> I need to use MaskEdit in

Re: [fpc-pascal] MaskEdit

2008-01-27 Thread ik
On Jan 27, 2008 6:25 PM, Marek Nožka <[EMAIL PROTECTED]> wrote: > Hallo > > I need to use MaskEdit in Lazarus 0.9.24. But the MaskEdit isn't on the > component palette. I think that I call the Constructor an it will work. > But no :-( My code: > > type > > TfrmZak = class(TForm) >. >. > e

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

2008-01-18 Thread ik
On Jan 18, 2008 12:34 PM, Bee <[EMAIL PROTECTED]> wrote: > > Probably not. And if at all, it wouldn't accomplish what you want to do. > > If someone would provide a patch for this, is it gonna be accepted? If > not, may I know what the reason(s)? ;) unit_name.function () ... ... How would you

<    1   2   3   4   5   >