[fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-19 Thread Brian
After a bit of research , the issue of setting the cpu affinity has been solved , which may be of use to other folks. A bit of info here concerning the data type cpu_set_t , which as far as I can determine (no help from the mess that is the c library source) is essentially an array of DWORD. For m

Re: [fpc-pascal] not possible add into class helper overloaded variant of some virtual method

2013-11-19 Thread ko paka
Reported as http://bugs.freepascal.org/view.php?id=25331. This "one point more" from my original email was probably some my temporary problem, because I am not able to repeat it again. regards tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] virtual method and generics

2013-11-19 Thread Sven Barth
Am 19.11.2013 10:21 schrieb "Xiangrong Fang" : > > Hi, > > In my TTree class: https://github.com/xrfang/fpcollection/blob/master/src/units/tree.pas > > I have the following method: > > function TTree.Load(s: TStream): Integer; > var > lv, c: QWord; > node: TTree; > buf: Pointer; > begin > C

[fpc-pascal] Re: virtual method and generics

2013-11-19 Thread Xiangrong Fang
2013/11/19 Xiangrong Fang > > Now I have a problem. CALL#1 is virtual as expected (sub-class's OnRestore > is called), but CALL#2 is not virtual, it just call the (empty) OnRestore > method defined in TTree. > > How to solve this problem? > BTW, this also does NOT solve the problem: TSelfType(n

[fpc-pascal] virtual method and generics

2013-11-19 Thread Xiangrong Fang
Hi, In my TTree class: https://github.com/xrfang/fpcollection/blob/master/src/units/tree.pas I have the following method: function TTree.Load(s: TStream): Integer; var lv, c: QWord; node: TTree; buf: Pointer; begin Clear; if not ReadNodeData(s, lv, buf, c) then Exit(0); DoRestore(buf