fpc-pascal · 2014-02
- Size of program vs library ?40
Hello. Here size of "nude" program and library compiled with fpc 2.7.1. Why is it a so big size-difference ? Compiled with => fpc 2.7.1 => linux 64 Compiler parameters :…
- Generic String Functions29
What is the relation between Generic Functions and (static) DXE String encoding schemes ? Can you (e.g.) do a (silly) Generic Function that takes two strings of any (but…
- Enum scope5
The FPC stable version allow to declare a new type, as private/protected/public, inside a class. So, I propose migrate enums to your "own" classes... why? Well, I have…
- Announces & License question9
I have released some free pascal code. - *data2pas* a command line tool that generates pascal include files from a text file description. This is a tool similar to…
- How to use generics and meta class?21
I have this structure: generic TMyGeneric<T> = class end; TMyGenericClass = class of TMyGeneric; TMyType = class end; TMyClass1 = specialize TMyGeneric<TMyType>;…
- List published properties of a class2
Hello list. I need to list all published properties declared in a class, iow, removing properties inherited from the parent. Up to now I am iterating…
- Property attributes4
Hello list. What is the current status of property attributes? Some roadmap? http://wiki.freepascal.org/Property_attributes
- Generics Syntax4
Will the generics syntax change in the fpc 2.8? The fpc-generics-collection library ( http://forum.lazarus.freepascal.org/index.php?topic=20965.0) doesn't use the…
- Mail reception order2
It was suggested that we should look at the mail headers when the mails arrived in a strange order. Here is an example: ========= Mail 1: Delivered-To: (...)@gmail.com…
- How to add new methods in a existent generic type?4
I'm trying to add new features in a third generic type. Please see this simulation below: { TThirdGeneric } generic TThirdGeneric<T> = class private FFoo: T; public…
- fp universal library ?35
Hello everybody ;-) I have developed a fp-wrapper, uos, who links to the best audio open-source libraries: This main fp-wrapper uses other fp-wrappers who link to those…
- Wrong constructor returning the right object7
I think I've sorted this but I'd appreciate being kicked if it looks like I'm doing something badly wrong. What determines the constructor that's called when an object's…
- ObjAuto.ObjectInvoke2
Is there any alternative to the ObjAuto.ObjectInvoke routine of Delphi XEs?: http://docwiki.embarcadero.com/CodeExamples/XE3/en/ObjectInvoke_(Delphi) Thank you! Silvio…
- Format(), leading zeros, and hex digits2
Is it possible to get Format() to pad with leading zeros rather than spaces, particularly in the case of hex numbers? My understanding is that printf() interprets e.g.…
- Invalid standard handles in Windows service mode?3
I have a Windows service application, and recently I noticed it doesn't work if I compile it with FPC 2.6.2. It can be started in user mode too, and in that case I…
- Issue 25114 needs to be assigned1
Could someone assign the issue[1] to Sergei (Gorelkin)? I want to fix the problem, but I need his input on the subject. Daniel [1]…
- updating an old DOS tool using PChar strings9
i have an old DOS tool written in BP7 that i'm needing to fix a couple of problems with... the main problem is that it is using an old CStr unit written by a Todd Holmes…
- [ISSUE]: FCL-Web and checkox input0
Please see in: http://bugs.freepascal.org/view.php?id=25737 Thank you! Silvio Clécio My public projects - github.com/silvioprog
- Dynamic arrays, yet another pitfall39
There is another possible pitfall with dynamic arrays I trapped into which I would like to share. Those who handle dynamic arrays in a virtuoso manner daily may skip…
- SVN revisions and builds3
We use FPC trunk for the development of several projects and we download it from ftp://freepascal.dfmk.hu/pub/lazarus/snapshots/ However for FPC 2.7.1, the latest build…
- Feature announcement: Type helpers4
Hello Free Pascal community! I'm pleased to announce the addition of type helpers which extend the existing helper concept with the ability to extend primitive types.…
- fp libraries do not like cmem ?18
Hello. This to note that a fp library does crash the program who call it, if that program uses cmem. To reproduce the crash, create a fp library with a thread. Start the…
- weird compiler(?) problem12
I encountered a very strange problem. The code looks like this: //In Unit1.pas: //sel is an object of TIntVector and //TIntVector = specialize TVector<Integer>…
- Generics and key words3
Can I use it: TBrookAction<TBrookEntity> = class(TBrookObject) ... instead of?: generic TBrookAction<TBrookEntity> = class(TBrookObject) ... And, can I use it:…
- Can a library synchronize foreign procedure ?3
Hello everybody. The question is certainly stupid because i guess it is impossible, but who knows... Is is possible for a library to synchronize a procedure form the…
- Getting info on a procedure parameter4
If a method a.WriteBuff() is passed another method b.finish() as a parameter, can it access b before calling finish(), or would this require an explicit parameter? If…
- cthreads and cSemaphoreTimedWait1
the TThreadManager class has only the SemaphoreWait procedure and it lacks the SemaphoreTimedWait function. But in the cthreads unit exists a cSemaphoreTimedWait…
- Community site0
You might have noticed that the FPC community site is already down for some time. Since we are retiring the machine running the community site we decided not to migrate…
- High() and Low() for empty dynamic arrays17
Some time ago there was a discussion about the data type given back by the "length" function. Several reasons were given for the type beeing a *signed* integer. But what…
- Some questions regarding language changes in trunk3
http://wiki.freepascal.org/User_Changes_Trunk#Comparative_operators_can_have_any_result_type Is this a preparation for LINQ-like functionality? With false and true being…
- TSortedCollection dupes ordering33
i have a TSortedCollection that i'm allowing duplicate keys to be inserted in... the problem that i'm having is that the duplicate keys are in reverse order from how…
- TSQLQuery UniDirectional and SaveToStream4
i will appreciate a little help / advice / anything for the following problem i'm having. I need to use the xmldatapacketreader to transfer datasets between free pascal…
- Nested generic parameters2
Can I use a defined generic type parameter inside a constraint of the same generic declaration on FPC trunk code? Something like: {$mode Delphi} type TFoo<T> = class end;
- DefaultFormatSettings usage7
I'm using this configuration: initialization DefaultFormatSettings.DateSeparator := '-'; DefaultFormatSettings.TimeSeparator := ':';…
- Linux / timestamps: vdso_[getttimeofday(),clock_gettime(),time(); ] coming our way?0
foreword: please forgive if this is too low-level etc or if I don't understand it enough ;) Since I'm glancing over lkml sometimes, I couldn't help but notice an…
- overload question (variant vs enum subrange)1
TFoo1 is a sub range of FFoo And it seems to match both TFoo and variant. No other type seems to be bothered by variant. Also variant is the only type, that I found…
- Does RTTI offer any method parameter information?3
In a situation where PPropInfo^.PropType^.Kind=tkMethod does RTTI enable you to determine the number and/or types of the parameters that method uses (if any)? If not, is…
- MSEide+MSEgui 3.2, beginner course1
MSEide+MSEgui version 3.2 has been released: http://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/3.2/ There is also a new programming course for beginners:…
