Re: [fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-02 Thread ik
On Fri, Mar 1, 2013 at 1:11 PM, ik wrote: > On Fri, Mar 1, 2013 at 8:56 AM, Jürgen Hestermann > wrote: >> >> Am 2013-03-01 04:41, schrieb dmitry boyarintsev: >> >>> All the new "strange" features doesn't really matter as long as: >>> 1)

Re: [fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-03-01 Thread ik
On Fri, Mar 1, 2013 at 8:56 AM, Jürgen Hestermann wrote: > > Am 2013-03-01 04:41, schrieb dmitry boyarintsev: > >> All the new "strange" features doesn't really matter as long as: >> 1) the backward compatibility is in place (and or guidelines are given >> how to make the code compatible with mini

Re: [fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-28 Thread ik
On Thu, Feb 28, 2013 at 11:21 AM, Marco van de Voort wrote: > In our previous episode, ik said: >> I was going over the wiki and looked at >> http://wiki.freepascal.org/FPC_New_Features_Trunk . >> It looks like some of the features here, actually breaks Pascal, and >> c

[fpc-pascal] Does FPC 2.8.0 can actually still be called Pascal ?

2013-02-27 Thread ik
Hello, I was going over the wiki and looked at http://wiki.freepascal.org/FPC_New_Features_Trunk . It looks like some of the features here, actually breaks Pascal, and create something like Jascal or something, but it's not Pascal in spirit. For example 1000.to_string ?! I have it on Ruby and Java

Re: [fpc-pascal] pascal compiler for ardurino

2013-02-26 Thread ik
On Tue, Feb 26, 2013 at 9:49 PM, Ralf A. Quint wrote: > At 11:07 AM 2/26/2013, ik wrote: >> >> Hello, >> >> Is there a Pascal compiler for Ardurino (instead of the existed build >> in language or C) ? > > > Don't know anything Arduino specific (

[fpc-pascal] pascal compiler for ardurino

2013-02-26 Thread ik
Hello, Is there a Pascal compiler for Ardurino (instead of the existed build in language or C) ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Semi OT: Database-free application lecture

2013-02-25 Thread ik
On Mon, Feb 25, 2013 at 11:28 PM, Sven Barth wrote: > On 25.02.2013 21:57, ik wrote: >> >> Hello, >> >> I gave today a lecture named "database-free applications"[1]. >> The lecture explain an idea of how to design complex systems and break >> them

[fpc-pascal] Semi OT: Database-free application lecture

2013-02-25 Thread ik
Hello, I gave today a lecture named "database-free applications"[1]. The lecture explain an idea of how to design complex systems and break them apart etc... The lecture is in English and so does my slide notes, and I think that people here can enjoy the idea as well. [1] https://github.com/ik5/

Re: [fpc-pascal] is resourcestring translation thread safe ?

2013-02-21 Thread ik
On Thu, Feb 21, 2013 at 9:07 PM, Sven Barth wrote: > On 21.02.2013 19:14, ik wrote: >> >> On Thu, Feb 21, 2013 at 8:06 PM, Sven Barth >> wrote: >>> >>> On 21.02.2013 17:55, ik wrote: >>>> >>>> >>>> Hello, >>>&g

Re: [fpc-pascal] is resourcestring translation thread safe ?

2013-02-21 Thread ik
On Thu, Feb 21, 2013 at 8:06 PM, Sven Barth wrote: > On 21.02.2013 17:55, ik wrote: >> >> Hello, >> >> Let's say I have a multi-threaded cgi (such as brook framework), and I >> use resourcestring to translate strings. >> Does the translation of resour

[fpc-pascal] is resourcestring translation thread safe ?

2013-02-21 Thread ik
Hello, Let's say I have a multi-threaded cgi (such as brook framework), and I use resourcestring to translate strings. Does the translation of resourcestring will be based on a thread - that is a copy for each thread, or will it be globally changed ? Thanks, Ido __

Re: [fpc-pascal] What's a unit?

2013-02-19 Thread ik
On Tue, Feb 19, 2013 at 3:31 PM, Mark Morgan Lloyd wrote: > Does a unit- rather than something it contains- have any sort of > representation which is recognisably distinct from an object? > > I've got a situation where if a library (.dll or .so) is opened under > program control it is represented

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-18 Thread ik
On Mon, Feb 18, 2013 at 3:54 AM, waldo kitty wrote: > On 2/17/2013 19:40, Rainer Stratmann wrote: >> >> Am Sunday 17 February 2013 18:45:50 schrieb Florian Klämpfl: >>> >>> Am 17.02.2013 18:10, schrieb ik: >>>> >>>> Nice, Pascal is at the s

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 11:24 PM, Frank Church wrote: > On 17 February 2013 20:30, ik wrote: >> On Sun, Feb 17, 2013 at 9:31 PM, Frank Church wrote: >>> On 17 February 2013 17:10, ik wrote: >>>> On Sun, Feb 17, 2013 at 5:05 PM, Florian Klämpfl >>>&

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 10:59 PM, Leonardo M. Ramé wrote: >> >> From: ik >>To: FPC-Pascal users discussions >>Sent: Sunday, February 17, 2013 5:30 PM >>Subject: Re: [fpc-pascal] OT a bit - Planet Object Pascal >> >> >&

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 10:57 PM, Frank Church wrote: > On 17 February 2013 19:35, Florian Klämpfl wrote: >> Am 17.02.2013 20:31, schrieb Frank Church: >>> One more thing lest I forget. The official FPC documentation is very >>> good, especially for documents created by volunteers and hobbyists.

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 9:31 PM, Frank Church wrote: > On 17 February 2013 17:10, ik wrote: >> On Sun, Feb 17, 2013 at 5:05 PM, Florian Klämpfl >> wrote: >>> >>> Am 17.02.2013 15:36, schrieb ik: >>> > >>> > >>> > On Sun, Feb

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 5:05 PM, Florian Klämpfl wrote: > > Am 17.02.2013 15:36, schrieb ik: > > > > > > On Sun, Feb 17, 2013 at 1:58 PM, Florian Klämpfl > > Why is it that FPC/K now exists for 20 years as an open source project, > > and you > > can&#x

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 1:58 PM, Florian Klämpfl wrote: > Am 17.02.2013 10:53, schrieb ik: > > > > Pascal is only one programming language I use, and only for hobby, not > > for make a living, > > The same applies here. > > > and that's partly becaus

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 11:43 AM, Florian Klämpfl wrote: > Am 17.02.2013 10:40, schrieb ik: > > > When I hear stuff like "sure pascal is cool but lack of good string > > > support", I think that it is more self explanatory then anything. > >

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 11:35 AM, Florian Klämpfl wrote: > Am 17.02.2013 09:55, schrieb ik: > > > > > > On Sun, Feb 17, 2013 at 10:13 AM, Florian Klämpfl > > mailto:flor...@freepascal.org>> wrote: > > > > Am 16.02.2013 20:45, schrieb geneb: > &

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread ik
On Sun, Feb 17, 2013 at 10:13 AM, Florian Klämpfl wrote: > Am 16.02.2013 20:45, schrieb geneb: > > On Sat, 16 Feb 2013, Michael Van Canneyt wrote: > > > >>> I tried something like this before and I was suprised at the dearth of > >>> Lazarus and FreePascal bloggers. Getting Lazarus and FPC develop

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-16 Thread ik
On Sat, Feb 16, 2013 at 10:44 AM, Frank Church wrote: > On 13 February 2013 11:34, ik wrote: > > Hello, > > > > I'ved created an RSS aggregation site for Object Pascal related blogs: > > http://planet.objpas.org/ > > > > This is a test run, and the

[fpc-pascal] OT a bit - Planet Object Pascal

2013-02-13 Thread ik
Hello, I'ved created an RSS aggregation site for Object Pascal related blogs: http://planet.objpas.org/ This is a test run, and the look and feel will be changed in the feature. If you have a blog or can provide RSS for FPC/Lazarus news please send me an email with the feed details and I'll add y

[fpc-pascal] Re: TFPSMap return wrong pointer address

2013-01-31 Thread ik
On Thu, Jan 31, 2013 at 9:44 PM, ik wrote: > On Thu, Jan 31, 2013 at 9:35 PM, ik wrote: >> Hello, >> >> I'm trying to use TFPSMap, to store a class using a key. >> >> While the key seems to be saved properly, and easy to find, the data >> pointer that

Re: [fpc-pascal] pointer address safety

2013-01-31 Thread ik
On Thu, Jan 31, 2013 at 10:25 PM, Sven Barth wrote: > On 31.01.2013 19:55, ik wrote: >> >> Hello, >> >> What is the safest (no memory corruption etc...) way to use format >> string, and by using '%P' pass a class memory address ? >> >> D

[fpc-pascal] Re: TFPSMap return wrong pointer address

2013-01-31 Thread ik
On Thu, Jan 31, 2013 at 9:35 PM, ik wrote: > Hello, > > I'm trying to use TFPSMap, to store a class using a key. > > While the key seems to be saved properly, and easy to find, the data > pointer that returns is wrong. > The adding of the data can be found here

[fpc-pascal] TFPSMap return wrong pointer address

2013-01-31 Thread ik
Hello, I'm trying to use TFPSMap, to store a class using a key. While the key seems to be saved properly, and easy to find, the data pointer that returns is wrong. The adding of the data can be found here: https://github.com/ik5/split_lazarus/blob/master/src/untlazsplitview_code.pas#L244 Here is

[fpc-pascal] pointer address safety

2013-01-31 Thread ik
Hello, What is the safest (no memory corruption etc...) way to use format string, and by using '%P' pass a class memory address ? Does casting to Pointer good, or is it unsafe ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] Changing variable in conditional

2013-01-08 Thread ik
On Tue, Jan 8, 2013 at 10:44 AM, Krzysztof wrote: > Hi, > > I like when Free Pascal trying to implement best practices from other > languages. That was with increment variable using assign operator: i += 1. > Anyway, few days ago I analyzed C++ code and I liked one syntax: > > if ( ( i = GetSomeVa

Re: [fpc-pascal] Casting UTF8String, WideString and UnicodeString into AnsiString and vice versa

2012-12-03 Thread ik
On Mon, Dec 3, 2012 at 7:31 PM, Jonas Maebe wrote: > > On 03 Dec 2012, at 18:12, ik wrote: > >> I made casting of UTF8String, WideString and UnicodeString to AnsiString: >> https://github.com/ik5/fp-msgpack/blob/master/src/msgpack.pas#L452 >> >> As an example. &g

[fpc-pascal] Casting UTF8String, WideString and UnicodeString into AnsiString and vice versa

2012-12-03 Thread ik
Hello, I made casting of UTF8String, WideString and UnicodeString to AnsiString: https://github.com/ik5/fp-msgpack/blob/master/src/msgpack.pas#L452 As an example. My tests works. but are there things/contents that can break this casting, or change the content itself in some way ? Thanks, Ido __

Re: [fpc-pascal] length for long ansistring = segment fault

2012-12-03 Thread ik
On Mon, Dec 3, 2012 at 1:00 PM, Michael Van Canneyt wrote: > > > On Mon, 3 Dec 2012, Jonas Maebe wrote: > >> >> On 03 Dec 2012, at 11:52, Michael Van Canneyt wrote: >> >>> On Mon, 3 Dec 2012, Jonas Maebe wrote: >>> On 03 Dec 2012, at 11:13, Michael Van Canneyt wrote: > You are overwr

Re: [fpc-pascal] length for long ansistring = segment fault

2012-12-03 Thread ik
On Mon, Dec 3, 2012 at 12:13 PM, Michael Van Canneyt wrote: > > > On Mon, 3 Dec 2012, ik wrote: > >> Hello, >> >> When I try to get the length of AnsiString, it returns me segment fault. >> I'm not sure if I'm doing something wrong: >>

[fpc-pascal] length for long ansistring = segment fault

2012-12-03 Thread ik
Hello, When I try to get the length of AnsiString, it returns me segment fault. I'm not sure if I'm doing something wrong: var s : AnsiString; l : word; begin SetLength(s, 1024); FillChar(s, 1024, '*'); l := Length(s); // seg fault here writeln(l); end. Am I doing here something wro

Re: [fpc-pascal] Change Endian of String types

2012-11-26 Thread ik
On Mon, Nov 26, 2012 at 10:42 AM, ik wrote: > On Mon, Nov 26, 2012 at 10:29 AM, Vincent Snijders > wrote: >> >> >> 2012/11/26 ik >>> >>> Hello, >>> >>> Is there a way to convert endian of a string (from little to big and >>

Re: [fpc-pascal] Change Endian of String types

2012-11-26 Thread ik
On Mon, Nov 26, 2012 at 10:29 AM, Vincent Snijders wrote: > > > 2012/11/26 ik >> >> Hello, >> >> Is there a way to convert endian of a string (from little to big and >> vice versa) ? > > What kind of string you want to convert? For example a PChar is

[fpc-pascal] Change Endian of String types

2012-11-25 Thread ik
Hello, Is there a way to convert endian of a string (from little to big and vice versa) ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] chr does not return an error when number bigger then byte enters

2012-11-14 Thread ik
Hello, I'ved started a crossaide against PHP (http://idkn.wordpress.com/2012/11/14/why-php-must-be-abandoned-in-my-opinion/), due to few issues it have such as chr(256) will return ascii "0". But then I tested it with FPC, and it acts exactly the same, while many programming languages report on su

Re: [fpc-pascal] array of const with cdecl procedure

2012-11-11 Thread ik
On Sun, Nov 11, 2012 at 2:54 PM, Sven Barth wrote: > On 11.11.2012 13:40, ik wrote: >> >> Hello, >> >> I'm trying to write a shard library of my own that you can use with C >> as well. I'm using mode fpc, and not objfpc. >> >> I created some

[fpc-pascal] array of const with cdecl procedure

2012-11-11 Thread ik
Hello, I'm trying to write a shard library of my own that you can use with C as well. I'm using mode fpc, and not objfpc. I created something like this: ... procedure varargs_example(params : array of consts); cdecl; ... The compiler report an error: Error:Type identifier expected Fatal: Syntax

Re: [fpc-pascal] working witg UCS4Char

2012-11-09 Thread ik
On Fri, Nov 9, 2012 at 6:56 PM, Tomas Hajny wrote: > On Fri, November 9, 2012 17:38, ik wrote: >> On Fri, Nov 9, 2012 at 6:12 PM, Tomas Hajny wrote: >>> On Fri, November 9, 2012 17:01, ik wrote: >>>> On Fri, Nov 9, 2012 at 5:16 PM, Jonas Maebe >>>>

Re: [fpc-pascal] working witg UCS4Char

2012-11-09 Thread ik
On Fri, Nov 9, 2012 at 6:12 PM, Tomas Hajny wrote: > On Fri, November 9, 2012 17:01, ik wrote: >> On Fri, Nov 9, 2012 at 5:16 PM, Jonas Maebe >> wrote: >>> On 09 Nov 2012, at 16:06, ik wrote: >>> >>> And if I do it without the hash, then it's just

Re: [fpc-pascal] working witg UCS4Char

2012-11-09 Thread ik
On Fri, Nov 9, 2012 at 5:16 PM, Jonas Maebe wrote: > > On 09 Nov 2012, at 16:06, ik wrote: > > And if I do it without the hash, then it's just a number > > > UCS4Char is in fact just a number, and UCS4String is just a dynamic array of > cardinal. UCS4 is not implemen

[fpc-pascal] working witg UCS4Char

2012-11-09 Thread ik
Hello, I'm trying to work with UCS4Char (for this: https://github.com/ik5/fp-msgpack), but I can't figure out how to do it. For example, if do the following: --- {$H+} uses cwstring; var ch : UCS4Char; begin ch := #$233B4; writeln(ch); end. -

Re: [fpc-pascal] wayland support for FPC

2012-11-09 Thread ik
On Fri, Nov 9, 2012 at 1:06 PM, Graeme Geldenhuys wrote: > On 2012-11-09 10:42, Marco van de Voort wrote: >> IOW, I wouldn't desperately try to support Wayland native at this point. >> >> That can be done if the native api turns out to be stable, Wayland truely >> takes over X11, and all distros p

Re: [fpc-pascal] wayland support for FPC

2012-11-09 Thread ik
On Thu, Nov 8, 2012 at 11:38 PM, Sven Barth wrote: > On 08.11.2012 22:35, ik wrote: >> >> Hello, >> >> It seems that many GUI toolkits are slowly starting to move to wayland >> (http://wayland.freedesktop.org/), that moved to v1.0 >> Is there anyone who curr

[fpc-pascal] wayland support for FPC

2012-11-08 Thread ik
Hello, It seems that many GUI toolkits are slowly starting to move to wayland (http://wayland.freedesktop.org/), that moved to v1.0 Is there anyone who currently working on binding for it for FPC ? Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepa

Re: [fpc-pascal] weird printout of char

2012-11-05 Thread ik
On Mon, Nov 5, 2012 at 5:38 PM, Jonas Maebe wrote: > > ik wrote on ma, 05 nov 2012: > > >> On Mon, Nov 5, 2012 at 4:39 PM, Jonas Maebe >> wrote: >>> >>> >>> On 05 Nov 2012, at 15:25, ik wrote: >>> >>> I have a program like thi

Re: [fpc-pascal] weird printout of char

2012-11-05 Thread ik
On Mon, Nov 5, 2012 at 3:41 PM, Ewald wrote: > Try this: (a char is only one byte, you're trying to print a multi-byte > character: print multiple one-byte characters) > WriteLn(#$d7, #$90); Breaking it into two bytes works. > > > On 11/05/2012 03:25 PM, ik wrote: &

Re: [fpc-pascal] weird printout of char

2012-11-05 Thread ik
On Mon, Nov 5, 2012 at 4:39 PM, Jonas Maebe wrote: > > On 05 Nov 2012, at 15:25, ik wrote: > > I have a program like this: > > - > program print; > begin > writeln(#$d790); // Should print א > end. > -- > > [snip] > > What am I missing

[fpc-pascal] weird printout of char

2012-11-05 Thread ik
Hello, I have a program like this: - program print; begin writeln(#$d790); // Should print א end. -- I print this to a file: ./program > file In hex editor the value 3F A0 It also the same on normal terminal. I'm using Free Pascal Compiler version 2.6.0 [2012/05/17] for x86

Re: [fpc-pascal] Testing if exception raised in fpcUnit

2012-11-05 Thread ik
On Mon, Nov 5, 2012 at 3:15 PM, Graeme Geldenhuys wrote: > On 2012-11-05 13:07, Michael Van Canneyt wrote: >> >> This will not detect if no exception is raised, only if the right >> exception is raised in case one is raised. > > > You are correct. An extra test is needed just before the except blo

Re: [fpc-pascal] Testing if exception raised in fpcUnit

2012-11-05 Thread ik
On Mon, Nov 5, 2012 at 2:45 PM, Michael Van Canneyt wrote: > > > On Mon, 5 Nov 2012, ik wrote: > >> Hello, >> >> I wish to test if a method has raised an exception for a value >> (something that should make the test pass) or not. >> >> For e

[fpc-pascal] Testing if exception raised in fpcUnit

2012-11-05 Thread ik
Hello, I wish to test if a method has raised an exception for a value (something that should make the test pass) or not. For example: function TestNum(ch : Char) : Byte; begin if UpCase(ch) in ['A'..'F', '0'..'9'] then ... else raise Exception.Create('Invalid char was given.'); end;

Re: [fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread ik
On Mon, Nov 5, 2012 at 1:18 PM, Tomas Hajny wrote: > On Mon, November 5, 2012 11:49, ik wrote: > > > Hello Ido, > >> As I understand, AnsiString and AnsiChar contain the environment type >> of string (it can be ISO8859x, utf-8 etc...). >> If that so, how can I kno

[fpc-pascal] What is the size of AnsiChar

2012-11-05 Thread ik
Hello, As I understand, AnsiString and AnsiChar contain the environment type of string (it can be ISO8859x, utf-8 etc...). If that so, how can I know the size (in bytes) of AnsiChar ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

Re: [fpc-pascal] FPCUnit checking Single values

2012-11-02 Thread ik
On Fri, Nov 2, 2012 at 4:01 PM, wrote: > > > On Fri, 2 Nov 2012, ik wrote: > >> Hello, >> >> I'm trying to check Single value. >> >> I'm doing the following: >> >> a := 1.1; >> b := 1.1; >> CheckEquals(a, b, Format(

[fpc-pascal] FPCUnit checking Single values

2012-11-02 Thread ik
Hello, I'm trying to check Single value. I'm doing the following: a := 1.1; b := 1.1; CheckEquals(a, b, Format('val %f does not equal %f', [a, b])); It reports an error, one of them are 1.1 and the other is 1,10 . I know about the possible drifts of floating points, but how can I create a test

Re: [fpc-pascal] convert floating point to bcd and vice versa

2012-11-01 Thread ik
On Thu, Nov 1, 2012 at 3:17 PM, Ewald wrote: > On 11/01/2012 12:22 PM, ik wrote: >> Hello, >> >> I need to convert floating point (Single and Double) to an array of >> bytes > PByte(@YourVariable)[0] > through > PByte(@YourVariable)[SizeOf(YourVariable)-

[fpc-pascal] convert floating point to bcd and vice versa

2012-11-01 Thread ik
Hello, I need to convert floating point (Single and Double) to an array of bytes (BCD) and vice versa. Are there any existed implementation for it ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mail

Re: [fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread ik
On Tue, Oct 30, 2012 at 10:10 PM, Mark Morgan Lloyd wrote: > ik wrote: >> >> Hello, >> >> I have the following function: >> >> function OneToTwoComplement(AValue: QWord): QWord; >> begin >> Result := (AValue xor $) + 1;

[fpc-pascal] Re: Range check error while evaluating constants

2012-10-30 Thread ik
On Tue, Oct 30, 2012 at 4:26 PM, ik wrote: > Hello, > > I have the following function: > > function OneToTwoComplement(AValue: QWord): QWord; > begin > Result := (AValue xor $) + 1; > end; > > What am I missing here that makes the compiler compl

[fpc-pascal] Range check error while evaluating constants

2012-10-30 Thread ik
Hello, I have the following function: function OneToTwoComplement(AValue: QWord): QWord; begin Result := (AValue xor $) + 1; end; What am I missing here that makes the compiler complain about "Range check error while evaluating constants" ? Why doesn't it complain on : functio

Re: [fpc-pascal] OT: Creating a site to contain Pascal units, libraries etc

2012-10-30 Thread ik
On Tue, Oct 30, 2012 at 2:29 AM, Jeppe Græsdal Johansen wrote: > Den 30-10-2012 01:04, ik skrev: >> >> Hello, >> >> There are many places such as GitHub, Google Code, Sourceforge etc, >> that hosts a lot of open source projects, libraries etc for >> FPC/Pas

[fpc-pascal] Two and one compliment converting functions

2012-10-30 Thread ik
Hello, Does FPC contain any functions to convert between One Compliment (http://en.wikipedia.org/wiki/Ones%27_complement) to Two Compliment (http://en.wikipedia.org/wiki/Two%27s_complement) and vice versa ? I ask this before I'll implement it on my own :) Thanks, Ido

[fpc-pascal] OT: Creating a site to contain Pascal units, libraries etc

2012-10-29 Thread ik
Hello, There are many places such as GitHub, Google Code, Sourceforge etc, that hosts a lot of open source projects, libraries etc for FPC/Pascal. On the other hand we have fppkg that can have repositories and able to allow us remote download and install of code. Ruby has the following web site t

Re: [fpc-pascal] Best way to transfer data between applications?

2012-10-29 Thread ik
On Mon, Oct 29, 2012 at 5:52 AM, 印場 乃亜 wrote: > Greetings, > > I am familiar with the basic underlying methods available for transferring > data between processes on Windows and Unix, i.e. Pipes, Shared memory, and > TCP/IP - but what I am not familiar with is any higher level functionality > t

[fpc-pascal] creating msgpack port to Pascal

2012-10-10 Thread ik
Hi List, I've started working on porting msgpack (messagepack.org) to native FreePascal code: (https://github.com/ik5/fp-msgpack). If you do not know it, then it's a way to move data around with minimal amount of bytes in process. It was designed to take things like JSON and translate it into byte

[fpc-pascal] does FPC support static variable inside a procedure ?

2012-09-27 Thread ik
Hello, Is there a way to create a static variable inside a procedure ? The following code: procedure static_variable; var static_var : Integer = -1; begin inc(static_var); writeln('static_var ', static_var); end; begin while true do begin static_variable; sleep(1000); e

[fpc-pascal] What version of FPC should I use to develop android application ?

2012-09-27 Thread ik
Hello, In order to use FPC jvm for android, what version should I be using of FPC ? I tried to compile FPC 2.7.1 r22465. It complains on: symdef.pas(620,38) Error: Identifier not found "TAsmList" Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-08-24 Thread ik
On Sat, Aug 25, 2012 at 1:48 AM, Jonas Maebe wrote: > > On 25 Aug 2012, at 00:37, ik wrote: > > > On Sat, Aug 25, 2012 at 1:07 AM, Sven Barth >wrote: > > > >> Am 24.08.2012 21:21 schrieb "Jonas Maebe" : > >> > >>> It is s

Re: [fpc-pascal] variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-08-24 Thread ik
On Sat, Aug 25, 2012 at 1:07 AM, Sven Barth wrote: > Am 24.08.2012 21:21 schrieb "Jonas Maebe" : > > > > > > > On 24 Aug 2012, at 20:52, ik wrote: > > > > > For two weeks now, I have the following error message with FPC 2.7.1: > > > va

[fpc-pascal] variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-08-24 Thread ik
Hello, For two weeks now, I have the following error message with FPC 2.7.1: variant.inc(82,10) Error: Illegal type conversion: "Text" to "TextRec" I'm currently on r22233. Arch Linux 64 bit. The last build of FPC 2.7.1 I made was: Free Pascal Compiler version 2.7.1 [2012/08/04] for x86_64 Is it

[fpc-pascal] printing each Friday the 13 using Pascal

2012-08-06 Thread ik
Hi list, A friend of mine started a hobby project: Printing every Friday the 13, in a range of 5 years . I lack of the time for doing it at the moment, and I wish to add to his github

[fpc-pascal] Writing an outlook addons in FPC

2012-06-24 Thread ik
Hello, What is require in order to develop addons for MS Outlook using FPC ? Are there any existed headers that where bind to Pascal that does it ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailm

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-21 Thread ik
On Wed, Jun 20, 2012 at 2:15 PM, Inoussa OUEDRAOGO wrote: > > Think of a plug-able system. I have an engine, and code to execute. > > Instead of compile everything to an ELF/PE, I place code on dynamic shard > > library, and load it on run time when needed. > > > > The idea is that the engine wil

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-20 Thread ik
On Wed, Jun 20, 2012 at 10:20 AM, wrote: > > > On Wed, 20 Jun 2012, ik wrote: > > On Wed, Jun 20, 2012 at 8:33 AM, LacaK wrote: >> >> ** >>> >>> Class helpers would not help ? >>> >>> http://wiki.freepascal.org/**Helper_types&

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-19 Thread ik
On Wed, Jun 20, 2012 at 8:33 AM, LacaK wrote: > ** > Class helpers would not help ? > > http://wiki.freepascal.org/Helper_types > They can, but there is a protocol that I'm trying to create that provides me information what to execute (out of white list). The thing is, that the first request ma

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-19 Thread ik
On Tue, Jun 19, 2012 at 4:13 PM, Mattias Gaertner wrote: > ** > > > ik hat am 19. Juni 2012 um 14:22 geschrieben: > > Hello, > > Is there a way to tell in run-time that a specific function/procedure > should belong to a class ? > > For example, let's sa

[fpc-pascal] Adding method dynamically to a class

2012-06-19 Thread ik
Hello, Is there a way to tell in run-time that a specific function/procedure should belong to a class ? For example, let's say I have the following class: Type TTest = class procedure Foo; end; And I have also: procedure Bar; ... end; Is there a way to make at some point of my code ex

Re: RE : RE : [fpc-pascal] Dynamically Execute method

2012-06-19 Thread ik
On Tue, Jun 19, 2012 at 10:38 AM, Ludo Brands wrote: > > > As Bern said you can't call an object method without passing > > the reference to the instance. In this case you are lucky > > because TMyClass.SayHi doesn't use any properties or class > > vars. Add a property to TMyClass and try to writ

Re: [fpc-pascal] Dynamically Execute method

2012-06-18 Thread ik
On Tue, Jun 19, 2012 at 12:51 AM, Bernd wrote: > 2012/6/18 ik : > > Hi, > > > > I'm playing a bit with the notion of execute a method dynamically on > demand. > > I'ved created the following PoC: > > https://gist.github.com/2950789 > > Souldn&

[fpc-pascal] Dynamically Execute method

2012-06-18 Thread ik
Hi, I'm playing a bit with the notion of execute a method dynamically on demand. I'ved created the following PoC: https://gist.github.com/2950789 It works, but for some strange reason, I find myself feeling that I'm missing something, or it should be done differently. Does this code written prope

Re: [fpc-pascal] header translation question, 64 bit problem

2012-06-17 Thread ik
On Sun, Jun 17, 2012 at 2:02 AM, Bernd wrote: > Hi, > > I am translating parts of the libpurple headers. Now I seem to have a > problem with this: > > > typedef enum > { >PURPLE_PLUGIN_UNKNOWN = -1, /**< Unknown type.*/ >PURPLE_PLUGIN_STANDARD = 0, /**< Standard plugin. */

Re: [fpc-pascal] Linux elf with signed checksum

2012-05-28 Thread ik
On Mon, May 28, 2012 at 3:34 PM, Jonas Maebe wrote: > > On 28 May 2012, at 14:09, ik wrote: > > > The second part is more interesting for this subject: It signs a checksum > > of the ELF file, so any change to it will break the checksum. > > It helps you to dis

[fpc-pascal] Linux elf with signed checksum

2012-05-28 Thread ik
Hello, I see that most of the ELF on my system, contain a signature like so: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x39645af26ea483eaae81df45bf34701580506115, stripped There are two very interesting signatu

[fpc-pascal] have anyone binded librsync to pascal yet ?

2012-05-25 Thread ik
Hello, Is there anyone who binded librsync into Pascal/FPC ? Thanks, Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: making FPC more code optimized

2012-04-29 Thread ik
On Sun, Apr 29, 2012 at 12:58, Reinier Olislagers wrote: > On 29-4-2012 11:40, ik wrote: >> Hello, >> >> Here is something that I'm asking without really know anything about >> the subject, so please bear with me. >> >> I'ved asked few places tha

[fpc-pascal] making FPC more code optimized

2012-04-29 Thread ik
Hello, Here is something that I'm asking without really know anything about the subject, so please bear with me. I'ved asked few places that works with Pascal (Delphi and FPC), why does they use C as the infrastructure, and they all say that there is not even one Pascal compiler that makes the co

Re: [fpc-pascal] compiling jvmbackend

2012-04-10 Thread ik
‎On Tue, Apr 10, 2012 at 17:15, Jonas Maebe wrote: > ik wrote on Tue, 10 Apr 2012: > > >> Hello, >> >> I'm trying to compile jvmbacked (once again after a long time). >> It seems to work well at first with the following cli make: >> >> sudo make

[fpc-pascal] compiling jvmbackend

2012-04-10 Thread ik
then I get the following error message: make[4]: Leaving directory `/home/ik/projects/foss/fpc/jvmbackend/rtl/android/jvm' fpcmake -p -Tjvm-android Makefile.fpc Processing Makefile.fpc Error: No targets set make[3]: *** [fpc_install] Error 1 make[3]: Leaving directory `/home/ik/projects/foss/fpc/jv

[fpc-pascal] fpweb and security

2012-02-27 Thread ik
Hello, I'm thinking now to use fpweb for a web application I need to build, but the application is going to be over the internet, and I'm interesting in knowing about few security issues that are supported or not. Does it have any CSRF protection ? What other if any security tools does it have ?

Re: [fpc-pascal] does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
On Sun, Feb 26, 2012 at 15:19, Jonas Maebe wrote: > > On 26 Feb 2012, at 14:16, ik wrote: > >> I'ved replaced it to >> >> iphdr    = bitpacked record > > This is wrong. The record is a C record, and hence follows {$packrecord c} > rules. "bitpacked

Re: [fpc-pascal] does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
On Sun, Feb 26, 2012 at 15:08, Jonas Maebe wrote: > > On 26 Feb 2012, at 13:54, ik wrote: > >> to the following Pascal record: >> >> >> iphdr    = record >> {$IFDEF ENDIAN_LITTLE} >>              jhl     : Cardinal; // __u8      ihl:4, >>      

[fpc-pascal] Re: does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
Answering myself: On Sun, Feb 26, 2012 at 14:54, ik wrote: > Hello, > > I translated the following struct > > struct iphdr { > #if defined(__LITTLE_ENDIAN_BITFIELD) >        __u8    ihl:4, >                version:4; > #elif defined (__BIG_ENDIAN_BITFIELD)

[fpc-pascal] does the following translation of a c struct to FPC is correct ?

2012-02-26 Thread ik
Hello, I translated the following struct struct iphdr { #if defined(__LITTLE_ENDIAN_BITFIELD) __u8ihl:4, version:4; #elif defined (__BIG_ENDIAN_BITFIELD) __u8version:4, ihl:4; #else #error "Please fix " #endif __u8tos; _

Re: [fpc-pascal] OT: Amazing new development tools

2012-02-26 Thread ik
On Sun, Feb 26, 2012 at 13:25, zeljko wrote: > On Sunday 26 of February 2012 11:43:38 Michael Van Canneyt wrote: > > >> I don't see him doing this in huge corporate administrative business > >> programs where hundreds of database tables are involved. > > > and that tables can contain billion of ro

[fpc-pascal] OT: Amazing new development tools

2012-02-25 Thread ik
Hello, I found the following amazing lecture that present a new idea of a development tool, that I think will interest you all: http://vimeo.com/36579366 Enjoy Ido ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

[fpc-pascal] Reactor Pattern for Pascal ?

2012-02-21 Thread ik
Hello, I'm looking for an open source based implementation (but not limiting for commercial usage) of Reactor Pattern (http://en.wikipedia.org/wiki/Reactor_pattern) to have something like Ruby's EventMachine . Does anyone know of such implementation ? Thanks, Ido

  1   2   3   4   5   >