Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2014-02

  1. Size of program vs library ?

    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 :…

    Fred van Stappen, fredvs, Henry Vermaak
    40
  2. Generic String Functions

    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…

    Michael Schnell, Marco van de Voort, Sven Barth
    29
  3. Enum scope

    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…

    Marcos Douglas, Mattias Gaertner, Sven Barth
    5
  4. Announces & License question

    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…

    Yann Mérignac, Jonas Maebe, Marco van de Voort
    9
  5. How to use generics and meta class?

    I have this structure: generic TMyGeneric<T> = class end; TMyGenericClass = class of TMyGeneric; TMyType = class end; TMyClass1 = specialize TMyGeneric<TMyType>;…

    silvioprog, Joao Morais, luiz americo pereira camara
    21
  6. List published properties of a class

    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…

    Joao Morais, Sven Barth
    2
  7. Property attributes

    Hello list. What is the current status of property attributes? Some roadmap? http://wiki.freepascal.org/Property_attributes

    Joao Morais, Sven Barth
    4
  8. Generics Syntax

    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…

    Fabrício Srdic, leledumbo, Michael Schnell
    4
  9. Mail reception order

    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…

    Frederic Da Vitoria, Mattias Gaertner
    2
  10. How to add new methods in a existent generic type?

    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…

    silvioprog, Sven Barth
    4
  11. fp universal library ?

    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…

    Fred van Stappen, Christo, Dmitry Boyarintsev
    35
  12. Wrong constructor returning the right object

    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…

    Mark Morgan Lloyd, Jeppe Græsdal Johansen, Marco van de Voort
    7
  13. ObjAuto.ObjectInvoke

    Is there any alternative to the ObjAuto.ObjectInvoke routine of Delphi XEs?: http://docwiki.embarcadero.com/CodeExamples/XE3/en/ObjectInvoke_(Delphi) Thank you! Silvio…

    silvioprog, Maciej Izak
    2
  14. Format(), leading zeros, and hex digits

    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.…

    Mark Morgan Lloyd, Michael Van Canneyt
    2
  15. Invalid standard handles in Windows service mode?

    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…

    MegaBrutal, Michael Van Canneyt
    3
  16. Issue 25114 needs to be assigned

    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]…

    Daniel Gaspary, Michael Van Canneyt
    1
  17. updating an old DOS tool using PChar strings

    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…

    waldo kitty, leledumbo, Paul Breneman
    9
  18. [ISSUE]: FCL-Web and checkox input

    Please see in: http://bugs.freepascal.org/view.php?id=25737 Thank you! Silvio Clécio My public projects - github.com/silvioprog

    silvioprog
    0
  19. Dynamic arrays, yet another pitfall

    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…

    Jürgen Hestermann, Flávio Etrusco, Florian Klämpfl
    39
  20. SVN revisions and builds

    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…

    Constantine Yannakopoulos, LacaK, Reinier Olislagers
    3
  21. Feature announcement: Type helpers

    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.…

    Sven Barth, Gerhard Scholz, leledumbo
    4
  22. fp libraries do not like cmem ?

    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…

    Fred van Stappen, DaWorm, Ewald
    18
  23. weird compiler(?) problem

    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>…

    Xiangrong Fang, Martin Frb, Sven Barth
    12
  24. Generics and key words

    Can I use it: TBrookAction<TBrookEntity> = class(TBrookObject) ... instead of?: generic TBrookAction<TBrookEntity> = class(TBrookObject) ... And, can I use it:…

    silvioprog, Maciej Izak, Sven Barth
    3
  25. Can a library synchronize foreign procedure ?

    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…

    Fred van Stappen, Michael Schnell
    3
  26. Getting info on a procedure parameter

    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…

    Mark Morgan Lloyd, Constantine Yannakopoulos, Marco van de Voort
    4
  27. cthreads and cSemaphoreTimedWait

    the TThreadManager class has only the SemaphoreWait procedure and it lacks the SemaphoreTimedWait function. But in the cthreads unit exists a cSemaphoreTimedWait…

    Dimitrios Chr. Ioannidis, Michael Van Canneyt
    1
  28. Community site

    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…

    Florian Klämpfl
    0
  29. High() and Low() for empty dynamic arrays

    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…

    Jürgen Hestermann, Florian Klaempfl, Florian Klämpfl
    17
  30. Some questions regarding language changes in trunk

    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…

    leledumbo, Sven Barth
    3
  31. TSortedCollection dupes ordering

    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…

    waldo kitty, Frederic Da Vitoria, Jim Leonard
    33
  32. TSQLQuery UniDirectional and SaveToStream

    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…

    Dimitrios Chr. Ioannidis, LacaK
    4
  33. Nested generic parameters

    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;

    Constantine Yannakopoulos, Sven Barth
    2
  34. DefaultFormatSettings usage

    I'm using this configuration: initialization DefaultFormatSettings.DateSeparator := '-'; DefaultFormatSettings.TimeSeparator := ':';…

    silvioprog, Dimitrios Chr. Ioannidis, Marco van de Voort
    7
  35. Linux / timestamps: vdso_[getttimeofday(),clock_gettime(),time(); ] coming our way?

    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…

    Lukasz Sokol
    0
  36. overload question (variant vs enum subrange)

    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…

    Martin Frb
    1
  37. Does RTTI offer any method parameter information?

    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…

    Howard Page-Clark, Sven Barth
    3
  38. MSEide+MSEgui 3.2, beginner course

    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:…

    Martin Schreiber, Michael Van Canneyt
    1