[fpc-pascal] Res: Amazon S3

2013-03-21 Thread silvioprog
I sent an end answer in issue about S3: https://github.com/silvioprog/brookframework/issues/14 Sorry for my delays in answer please. -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.or

Re: [fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-21 Thread Sven Barth
Am 22.03.2013 02:32 schrieb "Xiangrong Fang" : > > Hi, > > I missed the key point. This bug should be fixed in 2.7.1, but I am now using 2.6.0. Now there is another problem: > > If I change my code to this: > > > TTreapEnumerator = class > FStack: TStack; > FCurrent: PNode;

[fpc-pascal] Re: Use generic class as parameter (was: how to write enumerator for trees)

2013-03-21 Thread Xiangrong Fang
Hi, I missed the key point. This bug should be fixed in 2.7.1, but I am now using 2.6.0. Now there is another problem: If I change my code to this: TTreapEnumerator = class FStack: TStack; FCurrent: PNode; public *constructor Create(root: PNode);* de

[fpc-pascal] Use generic class as parameter (was: how to write enumerator for trees)

2013-03-21 Thread Xiangrong Fang
Hi, I try to do exactly the same as show here: QUOTE: http://svn.freepascal.org/svn/fpc/trunk/packages/fcl-stl/src/gvector.pp generic TVector = class ... ... type TVectorEnumerator = class private FVector: TVector; FPosition: SizeUInt; FFirstDone: Boolean; fu

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread S. Fisher
--- On Thu, 3/21/13, kyan wrote: > > HTH > > Constantine Are you the man who created Kyan Pascal? I used that many years ago. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Failed manual page

2013-03-21 Thread Bart
Already reported as bug #0023357 in the bugtracker. Bart On 3/21/13, Daniel Gaspary wrote: > The page "Command-line options and switches Reference chart.. "[1] > referenced at Manuals page[2] seems to be buggy. > > [1] http://www.freepascal.org/docs-html/chart/chart.html > [2] http://www.freepas

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread waldo kitty
On 3/21/2013 09:59, Xiangrong Fang wrote: I am not creating a new thread, but just replied it. your post did not contain a references control line pointing to the post you were replying to... that breaks the linking and it won't be placed in the tree... my 2 centavos... My question is abou

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread silvioprog
2013/3/21 Flávio Etrusco > On Thu, Mar 21, 2013 at 1:39 PM, silvioprog wrote: > > 2013/3/21 Marcos Douglas > >> > >> On Thu, Mar 21, 2013 at 12:30 PM, silvioprog > wrote: > >> > 2013/3/21 Sven Barth > >> > (...) > >> > >> As I said to you, I can help to codify this part... but you didn't > >>

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Flávio Etrusco
On Thu, Mar 21, 2013 at 1:39 PM, silvioprog wrote: > 2013/3/21 Marcos Douglas >> >> On Thu, Mar 21, 2013 at 12:30 PM, silvioprog wrote: >> > 2013/3/21 Sven Barth >> > (...) >> >> As I said to you, I can help to codify this part... but you didn't >> answer my last question (link #14) and now you

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Marcos Douglas
On Thu, Mar 21, 2013 at 1:39 PM, silvioprog wrote: > 2013/3/21 Marcos Douglas >> >> On Thu, Mar 21, 2013 at 12:30 PM, silvioprog wrote: >> > 2013/3/21 Sven Barth >> >> >> >> Am 20.03.2013 09:18, schrieb Michael Schnell: >> >> >> >>> Of course Android is a rather hot topic in the fpc and Lazarus

[fpc-pascal] Re: enumerate generic trees

2013-03-21 Thread leledumbo
Make the enumerator class nested in the generic class. Inspiration: http://svn.freepascal.org/svn/fpc/trunk/packages/fcl-stl/src/gvector.pp -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/enumerate-generic-trees-tp5713735p5713739.html Sent from the Free Pascal

[fpc-pascal] Failed manual page

2013-03-21 Thread Daniel Gaspary
The page "Command-line options and switches Reference chart.. "[1] referenced at Manuals page[2] seems to be buggy. [1] http://www.freepascal.org/docs-html/chart/chart.html [2] http://www.freepascal.org/docs-html/ ___ fpc-pascal maillist - fpc-pascal@l

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread silvioprog
2013/3/21 Marcos Douglas > On Thu, Mar 21, 2013 at 12:30 PM, silvioprog wrote: > > 2013/3/21 Sven Barth > >> > >> Am 20.03.2013 09:18, schrieb Michael Schnell: > >> > >>> Of course Android is a rather hot topic in the fpc and Lazarus > >>> developer's forums. There are pages in the fpc / Lazaru

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Marcos Douglas
On Thu, Mar 21, 2013 at 12:30 PM, silvioprog wrote: > 2013/3/21 Sven Barth >> >> Am 20.03.2013 09:18, schrieb Michael Schnell: >> >>> Of course Android is a rather hot topic in the fpc and Lazarus >>> developer's forums. There are pages in the fpc / Lazarus Wiki on Android. >> >> Ehm... you do kn

[fpc-pascal] enumerate generic trees

2013-03-21 Thread Xiangrong Fang
Hi There, I encountered a problem writing enumerator for my generic tree. The enumerator class looks like this: TTreapEnumerator = class FStack: TStack; FCurrent: TTreap.PNode; public constructor Create(ANode: TTreap.PNode); destructor Destroy; override; function MoveNext:

Re: [fpc-pascal] Weird absence of compilation error

2013-03-21 Thread OBones
Tomas Hajny wrote: What I was expecting is that the compilation fails in all cases. Is there some flag that I failed to specify? You can add {$X-} to the top (i.e. disable the so-called extended syntax allowing to treat functions like procedures) and then it fails. However, I think that it shoul

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread silvioprog
Oops, I forgot the link: https://github.com/silvioprog/brookframework/issues/14 2013/3/21 silvioprog > 2013/3/21 Sven Barth > >> Am 20.03.2013 09:18, schrieb Michael Schnell: >> >> Of course Android is a rather hot topic in the fpc and Lazarus >>> developer's forums. There are pages in the fp

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread silvioprog
2013/3/21 Sven Barth > Am 20.03.2013 09:18, schrieb Michael Schnell: > > Of course Android is a rather hot topic in the fpc and Lazarus >> developer's forums. There are pages in the fpc / Lazarus Wiki on Android. >> > Ehm... you do know that "Amazon S3" <> "Samsung Galaxy S3"? Amazon S3 is > the

Re: [fpc-pascal] Weird absence of compilation error

2013-03-21 Thread OBones
Gerhard Scholz wrote: This must be read as follows: function Tmp: Double; begin Result := 10; // there is a semicolon (mispelling?) [statement 1] + Element;[statement 2] end; So, Result becomes 10. Yes, that's what happens and, yes it's a miss

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread Xiangrong Fang
I am not creating a new thread, but just replied it. My question is about algorithm not syntax. I will try the sample program by Kyan. Thanks. 2013/3/21 Michael Schnell > I have read this. My question is not about how to write enumerator, but >> how to do this for TREEs >> > > Xiangrong Fan

Re: [fpc-pascal] Weird absence of compilation error

2013-03-21 Thread Tomas Hajny
On Thu, March 21, 2013 10:53, OBones wrote: Hello, > I'm using FPC 2.6.0 and have the following test program : > > program test; > > function Element: Double; > begin >Result := 4; > end; > > function Tmp: Double; > begin >Result := 10; + Element; > end; > > begin >WriteLn(Tmp); > en

Re: [fpc-pascal] Weird absence of compilation error

2013-03-21 Thread Gerhard Scholz
This must be read as follows: function Tmp: Double; begin Result := 10; // there is a semicolon (mispelling?) [statement 1] + Element;[statement 2] end; So, Result becomes 10. The next line is a function call without storing the result. The lea

Re: [fpc-pascal] TFPDataHashTable: how to iterate?

2013-03-21 Thread Xiangrong Fang
I was told that it will be possible in 2.7... If you like, take a look at my TTreap class, which can be used as a hash table: https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas 2013/3/21 S. Fisher > Is there any way to iterate over a TFPDataHashTable ? > > _

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Marcos Douglas
On Thu, Mar 21, 2013 at 7:58 AM, Sven Barth wrote: > Am 20.03.2013 09:18, schrieb Michael Schnell: > >> Of course Android is a rather hot topic in the fpc and Lazarus developer's >> forums. There are pages in the fpc / Lazarus Wiki on Android. > > Ehm... you do know that "Amazon S3" <> "Samsung Ga

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Sven Barth
Am 20.03.2013 09:18, schrieb Michael Schnell: Of course Android is a rather hot topic in the fpc and Lazarus developer's forums. There are pages in the fpc / Lazarus Wiki on Android. Ehm... you do know that "Amazon S3" <> "Samsung Galaxy S3"? Amazon S3 is the cloud storage solution by Amazon. Se

[fpc-pascal] TFPDataHashTable: how to iterate?

2013-03-21 Thread S. Fisher
Is there any way to iterate over a TFPDataHashTable ? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Re: Example: regular expressions and "hash-tables"

2013-03-21 Thread Reinier Olislagers
On 21-3-2013 2:14, S. Fisher wrote: > Not actually a hash-table, but an AvgLvlTree, which can be used the > same way. The AvgLvlTree unit comes with Lazarus; if you don't have > that, you can download avglvltree.pas here: > > http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread Michael Schnell
I have read this. My question is not about how to write enumerator, but how to do this for TREEs Xiangrong Fang: Please anser to a message instead of creating a new thread ! There might be no necessary sort order of a tree. So you first need to invent a usable sort order and set up the enumera

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread Michael Schnell
On 03/21/2013 04:11 AM, Xiangrong Fang wrote: Now I don't know how to write an enumerator for it. ... Syntax or algorithm ? -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Example: regular expressions and "hash-tables"

2013-03-21 Thread S. Fisher
Not actually a hash-table, but an AvgLvlTree, which can be used the same way. The AvgLvlTree unit comes with Lazarus; if you don't have that, you can download avglvltree.pas here: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/avglvltree.pas?root=lazarus&view=log There do

Re: [fpc-pascal] Amazon S3

2013-03-21 Thread Michael Schnell
Of course Android is a rather hot topic in the fpc and Lazarus developer's forums. There are pages in the fpc / Lazarus Wiki on Android. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/f

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread kyan
On Thu, Mar 21, 2013 at 10:32 AM, Xiangrong Fang wrote: > I have read this. My question is not about how to write enumerator, but how > to do this for TREEs Usually linearizing recursion is done with a stack. Here's a sample implementation that will give you an in-order tree traversal (Left - Par

[fpc-pascal] Weird absence of compilation error

2013-03-21 Thread OBones
Hello all, I'm using FPC 2.6.0 and have the following test program : program test; function Element: Double; begin Result := 4; end; function Tmp: Double; begin Result := 10; + Element; end; begin WriteLn(Tmp); end. And quite surprisingly to me, both ppc386 and pccrossx64 compile it s

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread Xiangrong Fang
I have read this. My question is not about how to write enumerator, but how to do this for TREEs Thanks 发送自魅族MX 原始邮件 发件人:Mattias Gaertner 时间:3月21日 15:39 周四 收件人:fpc-pascal@lists.freepascal.org 主题:Re: [fpc-pascal] How To write an enumerator for trees >On Thu, 21 Mar 2013 11:1

Re: [fpc-pascal] Reading exe version info on Linux?

2013-03-21 Thread Reinier Olislagers
On 21-3-2013 9:10, Michael Van Canneyt wrote: > > > On Thu, 21 Mar 2013, Reinier Olislagers wrote: > >> On 20-3-2013 21:30, Michael Van Canneyt wrote: >>> On Wed, 20 Mar 2013, Reinier Olislagers wrote: The program below works fine on Windows for reading e.g. info on explorer.exe I

Re: [fpc-pascal] Reading exe version info on Linux?

2013-03-21 Thread Michael Van Canneyt
On Thu, 21 Mar 2013, Reinier Olislagers wrote: On 20-3-2013 21:30, Michael Van Canneyt wrote: On Wed, 20 Mar 2013, Reinier Olislagers wrote: The program below works fine on Windows for reading e.g. info on explorer.exe It fails on Linux (FPC trunk x64, compiled 2013/03/14) when testing with

Re: [fpc-pascal] How To write an enumerator for trees

2013-03-21 Thread Mattias Gaertner
On Thu, 21 Mar 2013 11:11:49 +0800 Xiangrong Fang wrote: > Hi, > > I would like to add enumerator support for my TTreap implementation ( > https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas). > > The tree nodes are defined as: > > PNode = ^TNode; > TNode = recor