Re: [fpc-pascal] What to do to get new users

2024-11-20 Thread gabor via fpc-pascal
FPC provides headers for Win API, GTK2, Cocoa, etc. so you can create GUI applications with a default FPC installation. W dniu 2024-11-20 o 15:45, Travis Siegel via fpc-pascal pisze: Again, both of which are IDEs (just of a different type. You still haven't shown me how to build a GUI app with

Re: [fpc-pascal] LibXML2

2023-06-12 Thread gabor via fpc-pascal
Currently, libxml2 headers are outdated and partially incorrect/incomplete. I updated the headers a couple of years ago. You can find the patch file here: https://gitlab.com/freepascal.org/fpc/source/-/issues/38905 Michał. W dniu 2023-06-12 o 17:12, David Connolly via fpc-pascal pisze: Hi al

[fpc-pascal] Different levels of the same compiler message

2022-05-23 Thread gabor via fpc-pascal
Why am I getting a different level (hint/warning) of the same compiler message in similar code, only differing in return type? The following example: program Project1; uses SysUtils; function Test1: String; begin SetLength(Result, 0); end; function Test2: TBytes; begin SetLength(Result,

Re: [fpc-pascal] Bit manipulation helpers

2022-02-21 Thread gabor via fpc-pascal
W dniu 2022-02-21 o 13:34, gabor via fpc-pascal pisze: W dniu 2022-02-21 o 13:18, Ryan Joseph via fpc-pascal pisze: Oh my, I was confusing my terms I think. I wanted to do bit masking (I think it's called). I was expecting there to be something like TestFlag in the RTL since I can

Re: [fpc-pascal] Bit manipulation helpers

2022-02-21 Thread gabor via fpc-pascal
W dniu 2022-02-21 o 13:18, Ryan Joseph via fpc-pascal pisze: Oh my, I was confusing my terms I think. I wanted to do bit masking (I think it's called). I was expecting there to be something like TestFlag in the RTL since I can never remember the syntax "Value = (Value or Index)" function Tes

Re: [fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread gabor via fpc-pascal
W dniu 2021-06-14 o 22:25, Michael Van Canneyt via fpc-pascal pisze: On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: W dniu 2021-06-14 o 21:27, Michael Van Canneyt via fpc-pascal pisze: On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: Why does TMemoryStream only implement one version of

Re: [fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread gabor via fpc-pascal
W dniu 2021-06-14 o 21:27, Michael Van Canneyt via fpc-pascal pisze: On Mon, 14 Jun 2021, gabor via fpc-pascal wrote: Why does TMemoryStream only implement one version of SetSize method? https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/classes/classesh.inc?revision=49038&

[fpc-pascal] TMemoryStream.SetSize question.

2021-06-14 Thread gabor via fpc-pascal
Why does TMemoryStream only implement one version of SetSize method? https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/rtl/objpas/classes/classesh.inc?revision=49038&view=markup#l1225 The TStream class has two versions of SetSize method (virtual, overload) - one with a parameter of LongInt ty

Re: [fpc-pascal] Traits Proposal

2021-02-13 Thread gabor via fpc-pascal
W dniu 2021-02-13 o 20:38, Sven Barth via fpc-pascal pisze: Of course this does not provide any mechanism to directly add fields, however the compiler could in theory optimize access through property getters/setters if they're accessed through the surrounding class instance instead of the inter

Re: [fpc-pascal] TurboVision is reborn as FOSS (again)

2020-12-26 Thread gabor via fpc-pascal
W dniu 2020-12-26 o 16:34, Tomas Hajny via fpc-pascal pisze: On 2020-12-26 15:45, gabor via fpc-pascal wrote: W dniu 2020-12-22 o 04:57, Nikolay Nikolov via fpc-pascal pisze:  .  . Very interesting. But in a future version of the FV (or other TUI framework) apart from migrating from

Re: [fpc-pascal] TurboVision is reborn as FOSS (again)

2020-12-26 Thread gabor via fpc-pascal
W dniu 2020-12-22 o 04:57, Nikolay Nikolov via fpc-pascal pisze: Anyway, any interest to develop Free Vision further is very welcome one, so we can move it from past tense to a future one. I still think text mode UI for console and terminals still has a place, but sadly the current FV implementat

Re: [fpc-pascal] TurboVision is reborn as FOSS (again)

2020-12-26 Thread gabor via fpc-pascal
W dniu 2020-12-23 o 14:27, Graeme Geldenhuys via fpc-pascal pisze: On 22/12/2020 10:20 pm, gabor via fpc-pascal wrote: Sorry, I keep mistaking code point for character. I thought that the code point is a value in the range 0..10. I don't think I fully understand Unicode... Here

Re: [fpc-pascal] TurboVision is reborn as FOSS (again)

2020-12-22 Thread gabor via fpc-pascal
W dniu 2020-12-22 o 11:13, Marco van de Voort via fpc-pascal pisze: The problem is that multiple unicode codepoints might translate to one character. But that character might have variable width (1, 1.5, 2). And the rendering of codepoints to characters is output device (terminal, GUI canvas) d

Re: [fpc-pascal] TurboVision is reborn as FOSS (again)

2020-12-21 Thread gabor via fpc-pascal
W dniu 2020-12-21 o 23:41, Sven Barth via fpc-pascal pisze: > The main restriction is that it only supports ShortString and thus has > no Unicode support. I wonder which type would be best suited to store a unicode character (code point) for the screen buffer? type TScreenBuffer = array of r

Re: [fpc-pascal] Are record fields zeroed on declaration of a record?

2020-10-08 Thread gabor via fpc-pascal
OK, is it possible to define the TMyRecord with default values so that when I do Default(TMyRecord) it will be non-zero defaults written instead of zeros? You can define typed constant and assign it to variable. type TMyRecord = record X, Y: Integer; S: String; end; const MYDEFRE

Re: [fpc-pascal] Dynamic Arrays in Procedures

2020-10-04 Thread gabor via fpc-pascal
W dniu 2020-10-04 o 21:58, James Richters via fpc-pascal pisze: DoSomethingElse([$12,$1A,$2B]);for example… of course this doesn’t work, but is there a syntax that would work? This expression works fine with FPC 3.2.0 ___ fpc-pascal maillist - fpc-p