Von: Mattias Gaertner
Gesendet: Fr 03.04.2009 18:07
An: fpc-pascal@lists.freepascal.org;
Betreff: Re: [fpc-pascal] "Generics" Red Black Tree for fpc
> On Fri, 3 Apr 2009 17:16:50 +0200
> Helmut Hartl wrote:
>
> > Von: Mattias Gaertner
> > Gesendet: Fr 03.04.2009 16:51
> > An: fpc-pascal@lists
On Fri, 3 Apr 2009 17:16:50 +0200
Helmut Hartl wrote:
> Von: Mattias Gaertner
> Gesendet: Fr 03.04.2009 16:51
> An: fpc-pascal@lists.freepascal.org;
> Betreff: Re: [fpc-pascal] "Generics" Red Black Tree for fpc
>
> > How much work do you think is it to extend it to accept duplicate
> > keys? M
We could work on it.
Perhaps any one cold start a project for that. And others help.
My English and my knowledge in C++ is very pour. But i help any one do it.
2009/4/3 Michael Van Canneyt
>
>
> On Fri, 3 Apr 2009, Mattias Gärtner wrote:
>
> > Zitat von Michael Van Canneyt :
> >
> > >
> > >
>
Bart wrote:
On 4/3/09, Jonas Maebe wrote:
I think what is meant, is that if you create a direct subclass of TObject,
there is no need to call TObject's create constructor (e.g., via "inherited
create;") from your own constructors. It doesn't hurt if you do it of
course, and may be good practic
Von: Mattias Gaertner
Gesendet: Fr 03.04.2009 16:51
An: fpc-pascal@lists.freepascal.org;
Betreff: Re: [fpc-pascal] "Generics" Red Black Tree for fpc
> How much work do you think is it to extend it to accept duplicate keys?
> Mattias
How probable are duplicate keys in your usecase? / what is the
On 03 Apr 2009, at 16:21, Bart wrote:
So if i understand correctly:
Say I have
Type
TFoo = class;
private
fSomeField: Integer;
public
constructor Create;
end;
then
constructor TFoo.Create
begin
Inherited Create;
fSomeField := -1;
end;
would in essence be equal to
constructor TFoo.Cr
Thanks Jonas and Leledumbo for your answers. Most of this makes
sense to me now. Some minor followup questions / comments (snipped)
C) Just out of curiosity, am wondering why FreeAndNil is global
procedure instead of a method/destructor of TObject.
...
c:=c.tsomeclass.create;
c.freea
On Fri, 3 Apr 2009 13:08:42 +0200
Helmut Hartl wrote:
> Hi all,
>
> due to interest i post here our generic version of a red black tree
> implementation. A R/B tree is a quite fast directory datastructure
> which allows o(log n) access times.
>
> Warning: The code compiles only under 2.2.4RC1+,
On 4/3/09, Jonas Maebe wrote:
> I think what is meant, is that if you create a direct subclass of TObject,
> there is no need to call TObject's create constructor (e.g., via "inherited
> create;") from your own constructors. It doesn't hurt if you do it of
> course, and may be good practice to ac
> C) Just out of curiosity, am wondering why FreeAndNil is global procedure
> instead of a method/destructor of TObject. I am guessing it is
> for compatibility with Delphi which may or may not have a reason?
A method could not act the way FreeAndNil works (zeroing a local
pointer variable). It
Hi all,
due to interest i post here our generic version of a red black tree
implementation.
A R/B tree is a quite fast directory datastructure which allows o(log n) access
times.
Warning: The code compiles only under 2.2.4RC1+, below that the compilation
fails(crash).
Further info on http://f
On Fri, 3 Apr 2009, Mattias Gärtner wrote:
> Zitat von Michael Van Canneyt :
>
> >
> >
> > On Fri, 3 Apr 2009, Graeme Geldenhuys wrote:
> >
> > > On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole
> > > wrote:
> > > >
> > > > xmi files (not xml) are used to save uml models :
> > > > http://en
In our previous episode, Markus Glugla said:
> (very very quick) memory as a cache as soon as practicable. I would
> cache streams of measurement values (single type, sample rate circa
> 32KHz). The measurement program will run on diffrent machines with
> diffrent RAM. Depending on the free
Zitat von Michael Van Canneyt :
>
>
> On Fri, 3 Apr 2009, Graeme Geldenhuys wrote:
>
> > On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole
> > wrote:
> > >
> > > xmi files (not xml) are used to save uml models :
> > > http://en.wikipedia.org/wiki/XML_Metadata_Interchange
> > > and I want to ger
Hi Jonas,
thank you for your answer.
> On which OS?
Debian 5.0 GNU/Linux (uname -r: 2.6.26-1-686)
> Anyway, even if it would return non-zero values, the information would
> be next to useless. The reason is that on modern OS'es, available
> physical memory is dynamically divided between the
On Fri, Apr 3, 2009 at 11:32 AM, Frank Peelo wrote:
>
>>> It is on my todo list, item no. 132.458 :-)
>
>
>> Do you *only* have 132 todo items - lucky you ! :-)
>
> In /his/ locale, he writes '.'
I know - my smiley face has a double meaning.
Regards,
- Graeme -
On Fri, Apr 3, 2009 at 11:12 AM, Michael Van Canneyt
wrote:
>
> Correction. It seems to have been implemented...
> I must urgently upgrade my KDE :-)
Wow, the new KDE 4.x looks pretty cool, especially with the new Oxygen
theme. Really wow!! I'm using Ubuntu 9.04 beta with Qt+KDE libs
installed.
Graeme Geldenhuys wrote:
On Fri, Apr 3, 2009 at 10:51 AM, Michael Van Canneyt
wrote:
...
It is on my todo list, item no. 132.458 :-)
...
Do you *only* have 132 todo items - lucky you ! :-)
In /his/ locale, he writes '.'
In /your/ locale, i'd guess his '.' would be a ','
In /my/ loca
On Fri, Apr 3, 2009 at 11:25 AM, Michael Van Canneyt
wrote:
>
> Bummer. It writes old TP-Style object class definitions.
Bummer. :-(
Well, at least now you will have template code in umbrello to work
from to implement true Object Pascal class types. ;-)
Regards,
- Graeme -
On Fri, 3 Apr 2009, Michael Van Canneyt wrote:
>
>
> On Fri, 3 Apr 2009, Michael Van Canneyt wrote:
>
> >
> >
> > On Fri, 3 Apr 2009, Graeme Geldenhuys wrote:
> >
> > > On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole
> > > wrote:
> > > >
> > > > xmi files (not xml) are used to save um
On Fri, Apr 3, 2009 at 10:51 AM, Michael Van Canneyt
wrote:
>
> Well, Umbrello (Open source, comes with KDE) can generate code from XMI
> for various languages (C,C++,PHP, Java) except pascal. All you need to
> do is write an output engine for pascal.
>
> It is on my todo list, item no. 132.458 :-
On 03 Apr 2009, at 03:43, Richard Ward wrote:
A) The documentation says that for the create constructor:
(quote}
Description: Create creates a new instance of TObject. Currently it
does nothing. It is also not virtual, so there is in principle no
need to call it directly.
{unquote}
On Fri, 3 Apr 2009, Michael Van Canneyt wrote:
>
>
> On Fri, 3 Apr 2009, Graeme Geldenhuys wrote:
>
> > On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole
> > wrote:
> > >
> > > xmi files (not xml) are used to save uml models :
> > > http://en.wikipedia.org/wiki/XML_Metadata_Interchange
> >
On 03 Apr 2009, at 03:43, Richard Ward wrote:
5) Although I can't remember reading it anywhere, I've noticed from
my own demo programs that the addresses of objects are initially set
to nil.
That is not correct. All global variables (classes/objects or not) are
initialized to 0/nil, but
On 03 Apr 2009, at 03:43, Richard Ward wrote:
C) Just out of curiosity, am wondering why FreeAndNil is global
procedure instead of a method/destructor of TObject.
If you have:
var
c: tsomeclass;
begin
c:=c.tsomeclass.create;
c.freeandnil
end;
then freeandnil would get, as first (hidd
> What is it meant by: "no need to call [create] directly?" How do you
> invoke the constructor without calling it? ... and ... Why is create
> not virtual and the destroy destructor is?
Often in other OOP language, you need to call parent constructor before
doing anything else. In OP case,
On Fri, 3 Apr 2009, Graeme Geldenhuys wrote:
> On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole
> wrote:
> >
> > xmi files (not xml) are used to save uml models :
> > http://en.wikipedia.org/wiki/XML_Metadata_Interchange
> > and I want to gererate my data structures from my uml diagrams
> >
On Thu, Apr 2, 2009 at 10:05 PM, Philippe Martinole
wrote:
>
> xmi files (not xml) are used to save uml models :
> http://en.wikipedia.org/wiki/XML_Metadata_Interchange
> and I want to gererate my data structures from my uml diagrams
> I would be suprised if nothing already exists
I've been looki
Found some things on the net about Delphi and XMI, wouldn't be hard to create
FPC equivalent. Something named Bold from BoldSoft (or ECO or whatever).
--
View this message in context:
http://www.nabble.com/Generating-code-form-xmi-files-tp22848439p22864324.html
Sent from the Free Pascal - Genera
On 03 Apr 2009, at 02:34, Markus Glugla wrote:
I need the available memory (heap). At that time the functions
maxavail
or memavail did this. I read that I should use GetFPCHeapStatus and
other function currently.
This functions produce allways zero!! What can I do? What is wrong?
I use fpc v
30 matches
Mail list logo