fpc-pascal · 2015-07
- another xml question3
For the app I'm writing, it will have 3 elements in the XML document it reads. The first 2 will only have one child element. The third one will be from 1 to whatever.…
- Interactive command recognition & mapping to program functions & other 'cli' features as a unit6
I tried piecing something like in $topic together, intended as an 'interactive' command interpreter for my program. (which will in time grow an 'embedded' web server and…
- fpdoc HTML class hierarchy output contains duplicates3
Last night I came across something, which I think is a bug in fpdoc's HTML output. In recent times, fpdoc added a new output feature to the HTML generated - a class…
- Interface syntax: Is possible don't use specialize in mode objfpc?53
Is there some way to write this: type generic ICloneable<T> = interface function Clone: T; end; ...using this sintaxe: type ICloneable<T> = interface function Clone: T;…
- Calling overriden method using TMethod2
Hello, in the following sample: ======>>>====== ... type tm = procedure of object; var v1: tbar1; m1: tmethod; begin v1 := tbar2.create; try v1.go; ; m1.data:=v1;…
- Counting semaphore for free pascal16
A counting, or general, semaphore limits simultaneous access to a resource according to the number of permits you specify. On the other hand, a binary semaphore like a…
- fpcanvas and alpha-blending1
I'd like fpcanvas to support alpha-blending while drawing for example polygons, and I wonder what the best way would be. Maybe a new property AlphaBlend: Boolean to both…
- a "bug" on the bug tracker1
The problem is not very serious, but I point it out here because no bug tracker category seems appropriate. In the header of the pages of bug tracker the Community…
- Modems etc.8
Has anybody used FPC to decode (and generate) FSK modem tones on a VOIP connection? Strictly V.21, don't need the complexity of QAM etc. Mark Morgan Lloyd markMLl .AT.…
- Basic Sockets in FreePascal8
I have read on the wiki and documentation that FreePascal does not have any native support for socket handling, and that you need an external third party library to have…
- Parsers and Unicode5
When writing something like a parser, does FPC have anything that exposes the properties of each Unicode codepoint? I'm thinking in particular of Unicode properties like…
- access a google spreadsheet3
Hi! I'd like to sync an Android database using a google spreadsheet. I am aware of this code pascal-googleapis-oauth2 However I dont see a pascal implementation of…
- Error Message recording not yet supported6
Hello list. I got the "Message recordind not yet supported" error with 2.7.1 and 3.0.1 versions. 2.6.4 is fine. The error points to a zero-length line, between two class…
- FPCUnit - how to register decorator tests?1
Please see attached test project. I have a decorator class and a test class. In the initialization section I call RegisterTestDecorator(), but when I run the test suite,…
- Please trim your quotes8
I'm not the list admin, but please be considerate and trim some quotes before you reply. Most email client support the ability to select a piece of text, then click the…
- Txt2FPDoc 0.8.4 released2
Txt2FPDoc is a command line tool that converts a documentation file written in human readable language to an XML file suitable for FPDoc. Txt2FPDoc tries to make the…
- Sorted map vs hash map ?4
I did a small test to compare performance of TFPGMap and TFPHashList in sequential and random accessing values by keys. http://arbinada.com/main/en/node/1511 The results…
- Sorted map vs hash map ?0
The problem was in the proper generation of random keys for testing. Now it looks better. I added statistics with different key's density ("normal" usage is unique keys)
- TBGRABitmap / bounds0
bmp := TBGRABitmap.Create(1024,1024, clBlack); bmp.FontHeight := 30; bmp.FontAntialias := true; bmp.FontStyle := [fsBold]; bmp.TextOut( 0, 0, textonaovazio,…
- Reading resources2
Lazarus examples folder has an application ResExplorer made by Alexey Lagunov. It does not work well, images and other resource contents are not shown. Only the resource…
- UniversalTimeToLocal(UT: TDateTime) / LocalTimeToUniversal(LT: TDateTime)0
I believe that since SVN commit 30628 UniversalTimeToLocal(UT: TDateTime) and LocalTimeToUniversal(LT: TDateTime) are reporting incorrect values. The multiple parameter…
- XML from a site2
Currently working on an app which needs to be able to read an XML from a website. Looking at the page at http://wiki.freepascal.org/XML_Tutorial it appears there is no…
- Automatic Reference Counting Classes1
Sometime ago Sven have reported to the list he was working in a proof of concept mechanism to implement ARC in FPC, a feature similar to the Objective-C's ARC. What's…
- How can I get a typeinfo by address?4
I need to call a method dynamically by its name over string and pass some parameters to it. OK, I don't know if it is possibly in the current version of the compiler,…
- will be work macro with name of the unit?7
I have this unit, but when I compile it, I get this error: Illegal unit name XXX_Parser. The unit is saved under dfm_rrparser.pas. Second question: Why not displayed…
- question with interfaces, hooks7
Hi list! I'm just starting in with interfaces, and am happy to see there is something similar to multiple inheritence available. But it seems to be limited in a way I…
- Release of Lazarus 1.4.20
The Lazarus team is glad to announce the release of Lazarus 1.4.2. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.4.0. Here is the list of…
- lazarus template stm321
I published here <https://github.com/Turro75/stm32lazarustemplate> a lazarus template for stm32f103 , it also contains several units for simple peripheral access. I…
- How to use a static method as procedure variable?4
Consider the following sample: === begin code === type TMyProc = procedure(ABytes: array of Byte; out AOutput: AnsiString); TForm1 = class(TForm) Button1: TButton;…
- How to increase the range ckeck limit?3
Is there any compiler switch to increase the range limit check for operations like this?: {$R-} var r: SmallInt = 256; i : SmallInt; begin i := 10; if i in [0..r] then…
- jsonrtti and integer arrays1
I see that according to http://wiki.freepascal.org/Streaming_JSON one can use TStringList for an array of strings, but this seams to work only for writing JSON, is it…
- Re: Delphi mode for new features?2
This is another good example of divergence that complicates the life. Object type can be used as "advanced record" in FPC mode only. I'm agreed that it is good evolution…
- Re: fpc-pascal Digest, Vol 133, Issue 41
I would like to believe it but Embarcadero/Delphi announced the growth of users/client base 2 or 3 years ago, aren't they? Clearly, Delphi is more advanced in GUI…
- Error compiling fpc for ARM embedded2
today I updated fpc trunk to 31185. I am not able to compile ppcrossarm on this revision. It always worked with: make -j2 clean buildbase installbase CROSSINSTALL=1…
- Re: Delphi mode for new features?5
Sorry, I didn't understand your point. Out of Embarcadero subject, if 100% convergence is not possible why do divergence? Are you agreed that more FPC is compatible with…
- TDBF licensing12
Am I correct in understanding that TDBF included with FPC is a LGPL licensed component, the one that doesn't have the static linking exception. So I can't use it in any…
- ActiveX units under Linux0
Is it possible to make the importtl tool work under Linux? Is it just a matter of defining a bunch of Windows types? I use Linux for development and cross compile to…
- Floor, Ceil and Int642
Floor and Ceil (math unit) only return integers. Should there be an overloaded one for Int64 as well? B = 11111111111.111100000000000 Trunc(B) =…
- Delphi mode for new features?2
My question is inspired by some things asked here last weeks. As I see (may be mistaken), some _new_ Delphi features are available only in $MODE DELPHI. This way lead to…
- Help building FPC on armhf9
I recently installed fpc-2.6.4 on my Wandboard-Quad for production. I have fpc from svn but I get an error when I try to build. Compiling ARM Free Pascal Compiler...…
