fpc-pascal · 2019-09
- Compatibility problems with fpc > 3.3.1 rev 4237526
Hello everybody and specially Sven Barth. With last trunk of fpc, msegui is no more compatible with fpc. After big fight, it appears that commit of Sven Barth on Jul 13…
- Avoiding that terminal window is opened when running a app with allegro.pas graphics?0
If I create a shortcut to the binary and run it from the desktop a terminal window is opened. Is there away to avoid this?
- It's alive !11
Finally, the moment has come: https://www.youtube.com/watch?v=xos2MnVxe-c Following up on a bounty offered, Dmitry Boyarintsev has accomplished milestone one in the…
- for-in loop cast4
Question I’ve always had. Why do I need to cast “value” to “pointer" otherwise I get: Incompatible types: got "Pointer" expected “TObject” error?. I don’t…
- Printing terminal colors with writeln4
In C I can do: // https://stackoverflow.com/questions/4842424/list-of-ansi-color-escape-sequences printf("\033[31;1;4mHello\033[0m"); and get red text in the terminal…
- FPC docs about FindFirst15
https://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html 1) add to the list of attribs the value faAnyFile. 2) correct the example: call FindClose only inside…
- Calculating Pixels to represent 3D coordinates14
I'm curious if Freepascal has any package available that would calculate X,Y screen pixels based on 3D X,Y,Z data at some given rotations. I'm using Agg-Pas with…
- Overloading Inc and Dec procedures?2
seems, that overloading of Inc, Dec internal compiler procedures is not allowed. Is it by intention or can it be fixed (adding overload keyword to system function…
- Generics: Error: Can't determine which overloaded function to call1
I have generics record, where one method computes distance between 2 points: function T2DPoint.Distance(P: T2DPoint): Single; begin Result := Sqrt(Sqr(x-P.x) +…
- Read lines into UnicodeString variable from UCS2 (UTF-16) encoded text file26
is there any smart way how to read string data line by line from UCS2 encoded text files (lines delimited by $0A00). Using ReadLn(TextFile, UnicodeStringVariable) does…
- Illegal counter variable?30
Can someone please tell me why this happens? Var I : Longint = 0; Begin For I := 1 to 6 Do Writeln(I); End. This gives me : initialize.pas(4,5) Error: Illegal counter…
- Very vague gettickcount64 description?31
While consulting the online reference about gettickcount https://www.freepascal.org/docs-html/rtl/sysutils/gettickcount64.html I could not know anything about the units…
- Challenge accepted7
Few months ago I read somewhere on the fpc-mailinglists that someone stated that FPC is fine, but it could use more additional stuff. I really searched, but I can not…
- Tests results of several pascal based JSON parsers18
I've posted a new page that tests the speed and correctness of several pascal based JSON parsers. https://www.getlazarus.org/json/tests/ In full disclosure I am the…
