Re: [fpc-pascal] FPCMake and Makefile.fpc question

2020-05-06 Thread Bart via fpc-pascal
On Wed, May 6, 2020 at 8:03 AM Sven Barth via fpc-pascal wrote: > Not in the makefile.fpc, That is unfortunate. > but fpcmake allows you to pass a list of supported targets (usually -Tall is > used to allow all targets), but you'd need to pick each one. This does mean > howe

Re: [fpc-pascal] Compiler mode for code in rtl and rtl-extra

2020-05-11 Thread Bart via fpc-pascal
d and checked for correct functioning, Maybe one could apply {$modeswitch out} ? -- Bart _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Return value of StrToHostAddr and StrToHostAddr6 in sockets unit

2020-05-13 Thread Bart via fpc-pascal
On Wed, May 13, 2020 at 10:40 AM Noel Duffy via fpc-pascal wrote: > > And maybe change the var into an out I agree, it gives unnecessary warning about uninitialized variables. > As I've already learned the hard way, the sockets unit is compiled in > "fpc" mode, so

Re: [fpc-pascal] Ethernet Relays

2020-05-24 Thread Ched via fpc-pascal
ggestions on how this might be accomplished? James _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal _______ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] Segmentation fault with cthreads on FreeBSD

2020-06-08 Thread fredvs via fpc-pascal
minated by signal SIGSEGV 5Address boundary error) -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Segmentation fault with cthreads on FreeBSD

2020-06-08 Thread fredvs via fpc-pascal
tion compiles ok but crash while running. A contrario the compiler installed via the official pkg of FreeBSD gives a compiled program that runs ok: $ sudo pkg update $ sudo pkg install fpc $ sudo pkg install lang/fpc-units -- Sent from: http://free-pascal-general.1045716.

Re: [fpc-pascal] Database migration

2020-06-20 Thread leledumbo via fpc-pascal
> But before I proceed I would like to check here if something like this already exists None that I know of for native Pascal. As I no longer use ORM, Sqitch does the job for me these days. Basically it's like a git for database schema (surely you can do CRUD as well there, but it'

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bart via fpc-pascal
On Sat, Jul 25, 2020 at 12:24 AM Bo Berglund via fpc-pascal wrote: > But I would like to enumerate the subdirectories themselves (without > the content). Take a look at how FindAllFiles is implemented. It should be relatively easy to modify it so that it discards files and only adds fold

Re: [fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-08-01 Thread Alexey via fpc-pascal
Did you try to delete all "lib" dirs in your project? (compiled units)___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Regression in 3.2.0 ??

2020-08-18 Thread Peter via fpc-pascal
no idea if that is a valid fix. (More info; see bug 37566) Regards, Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Regression in 3.2.0 ??

2020-08-24 Thread Peter via fpc-pascal
Thanks to Sven & Michael for commenting. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] How reliable are Hashlists in Contnrs

2020-08-24 Thread Lars via fpc-pascal
ase a regular but slower List might be of use for perfection. If there is an error would it throw an exception? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Difference between Associative array and Hashlist?

2020-08-24 Thread Lars via fpc-pascal
ne as the TStringList is a bit slow, but do they already exist elsewhere before undertaking it... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How reliable are Hashlists in Contnrs

2020-08-24 Thread Bart via fpc-pascal
On Mon, Aug 24, 2020 at 9:25 PM Lars via fpc-pascal wrote: > Is there a such thing as a perfect hashlist which never has a collision, No, there are infinite possible items you can add to a haslist, but only a finite number of available hashes. It's the pigeon hole principl

Re: [fpc-pascal] How reliable are Hashlists in Contnrs

2020-08-24 Thread Lars via fpc-pascal
n one This one: https://github.com/z505/delphi-hashlist And had problems with it. I will try out contnrs one to compare soon! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Procedural generics question

2020-08-24 Thread Lars via fpc-pascal
r function. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Procedural generics question

2020-08-24 Thread leledumbo via fpc-pascal
n('a string'); end; begin specialize Add; specialize Add; end. -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] go32 tcp

2020-08-27 Thread Andreas via fpc-pascal
for a TCP connection? 3) How does the unit "talk" with the 16-bit DOS packet driver? Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] go32 tcp

2020-08-27 Thread Andreas via fpc-pascal
for a TCP connection? 3) How does the unit "talk" with the 16-bit DOS packet driver? Regards, Andreas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Linux GTK-2 GUI app

2020-08-31 Thread leledumbo via fpc-pascal
> Or create different packages for different distros ? If you can afford the maintenance burden, this is the best that every specific distro user will love. Otherwise, just provide a compressed archive with README inside. -- Sent from: http://free-pascal-general.1045716.n5.nabble.

Re: [fpc-pascal] Linux GTK-2 GUI app

2020-08-31 Thread leledumbo via fpc-pascal
p://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] String literals and code page of .pas source file

2020-09-02 Thread LacaK via fpc-pascal
re way how to get it working? Only work-around which worked for me (in both Delphi and Lazarus) was use: const   STRINGLITERAL1: WideString = 'áéíóčž'; Thanks -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.fr

Re: [fpc-pascal] Procedural generics question

2020-09-03 Thread Lars via fpc-pascal
On 2020-08-26 05:44, Nico Neumann via fpc-pascal wrote: The TypeInfo function checks the code during run-time thus the generated code is 'bloated'. Better use the compiler intrinsic GetTypeKind. {$mode objfpc} uses typinfo; generic procedure Add; begin if GetTypeKind(T) =

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-03 Thread LacaK via fpc-pascal
r will insert the appropriate conversions. *yes, this I can understand, but it will not work in Delphi 7 ...* *TIA* *L.* _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-06 Thread LacaK via fpc-pascal
prints the string correctly for me (under Mac OS X). Please always provide a compilable program when reporting issues. Jonas <> _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to implement a circular buffer object in pascal?

2020-09-07 Thread Brian via fpc-pascal
ded. If ReadIndex <> WriteIndex then .. do the work as described above and increment the ReadIndex I use the Free Pascal unit which allows suspending the thread while the ReadIndex is being increased. In the old DOS/DPMI days we would disable interrupts briefly. If you are innterested I can

Re: [fpc-pascal] How to implement a circular buffer object in pascal?

2020-09-08 Thread Brian via fpc-pascal
when working on a PIC project with serial data coming in from sensors and such, using Ansi-C. And the buffer was just an array of char (byte in pascal) and there was a read and a write index. The read index was only ever changed by the consumer and the write index by the interrupt routine when addi

[fpc-pascal] How to implement a circular buffer object in pascal?

2020-09-08 Thread vmst--- via fpc-pascal
have only implemented such systems in C on embedded platforms so it is not pascal enough to easily port. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-08 Thread LacaK via fpc-pascal
nd when dynamic codepage is taken into account and when not?* *L.* <> _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Bart via fpc-pascal
On Wed, Sep 9, 2020 at 8:37 AM LacaK via fpc-pascal wrote: > I am still confused how this CodePage aware stuff is expected to work and > when implicit conversios are included (as far as I understand here ONLY > declared/static codepage plays role) and when dynamic codepage is t

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread LacaK via fpc-pascal
works for me in Delphi7/Lazarus Thanks L. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-09 Thread Bart via fpc-pascal
On Wed, Sep 9, 2020 at 5:25 PM Tomas Hajny via fpc-pascal wrote: > A simple question - is TLabel.Caption declared as Utf8String No. -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mail

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-10 Thread LacaK via fpc-pascal
tring then compiler does not insert conversion code" is right?3. does my guess "if destination code page of string is CP_ACP and source is string literal (in source file code page) then no conversion code is inserted" is right?-Laco. ___

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-13 Thread LacaK via fpc-pascal
Dňa Fri, 11 Sep 2020 19:13:38 -0400 James Richters via fpc-pascal napísal:> What I'm trying to do is control some different ethernet relays. > They use> MODBUS TCP. I'm trying to keep it as simple as possible. I found >a modbus> library for Pascal but it was way ov

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-13 Thread LacaK via fpc-pascal
<<< text/html;charset=utf-8: Unrecognized >>> _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-13 Thread Brian via fpc-pascal
; var Tx_buffer : array[0..n] of byte; SentN := SendBuffer(@Tx_Buffer,NumBytes); -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman

[fpc-pascal] -Fu unit search path and network paths

2020-09-20 Thread LacaK via fpc-pascal
when I map network path to drive letter then it works as expected) TIA -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] -Fu unit search path and network paths

2020-09-20 Thread LacaK via fpc-pascal
ng project, which is located on local drive, but uses units from network, error is raised while compiling project file .lpr "Cannot find XYZ used by ..." (when I map network path to drive letter then it works as expected) TIA -Laco. ___

Re: [fpc-pascal] -Fu unit search path and network paths

2020-09-21 Thread LacaK via fpc-pascal
rror is raised while compiling project file .lpr "Cannot find XYZ used by ..." (when I map network path to drive letter then it works as expected) TIA -Laco. _______ fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org https://lists.freepascal.or

Re: [fpc-pascal] -Fu unit search path and network paths

2020-09-21 Thread LacaK via fpc-pascal
Dňa 21.9.2020 o 12:35 Marco van de Voort via fpc-pascal napísal(a): Op 2020-09-21 om 08:57 schreef LacaK via fpc-pascal: Hi *, are supported in -Fu (unit search path) networks paths? i.e. -Fu\\server\share -Fu\\server\share\path ? Correction: unit cannot be found only if it is placed in

Re: [fpc-pascal] -Fu unit search path and network paths

2020-09-22 Thread LacaK via fpc-pascal
    Result:=((Attr and faDirectory)=faDirectory)     else   Result:=false;   end; I suggest filing a bug report. Reported https://bugs.freepascal.org/view.php?id=37793 If you can add there more details please do it ;-) -Laco. _______

Re: [fpc-pascal] basic question on begin, end;

2020-09-23 Thread Bart via fpc-pascal
On Wed, Sep 23, 2020 at 4:25 PM dano none via fpc-pascal wrote: for i := start to stop do for j := start2 to stop 2 do CompoundStatement if functionally the same as for i := start to stop do begin for j := start2 to stop 2 do CompoundStatement end; A Compound Statement is a statement that

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

Re: [fpc-pascal] Adding file to string to the RTL

2020-10-06 Thread Bart via fpc-pascal
On Tue, Oct 6, 2020 at 10:12 AM Michael Van Canneyt via fpc-pascal wrote: > // Assume TEncoding.SystemEncoding > Function GetFileAsString(Const aFileName : RawByteString) : RawByteString; > // Specify encoding > Function GetFileAsString(Const aFileName : RawByteString; aEncoding :

[fpc-pascal] Precedence of compiler switches/directives

2020-10-08 Thread Peter via fpc-pascal
ssume that as directives can be set to different values in different parts of the code, that they must have the highest precedence. Is this correct and always the case? Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

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

2020-10-08 Thread gabor via fpc-pascal
MYDEFREC: TMyRecord = (X: 1; Y: 2; S: 'ABC'); var R: TMyRecord; begin R := MYDEFREC; end. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-10-27 Thread AlexeyT via fpc-pascal
pose and block is ignored. ? b) after I removed "that block" I got such trimmed src   while (OutputUnicodehttps://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-10-29 Thread AlexeyT via fpc-pascal
 So can you COMMENT that dead part with "and FALSE" and dead part II with "if ... =#10"? It will make things faster for people! Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-

[fpc-pascal] FPC 3.2fixes UTF8Decode strange place

2020-11-01 Thread AlexeyT via fpc-pascal
gards, Alexey _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] CRT unit and bug #32558

2020-11-06 Thread Ched via fpc-pascal
both Linux and W10, but there is apparently no callable SetUseACP procedure in the crt unit. Is it available in 3.2.0 ? Cheers, Ched' ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinf

Re: [fpc-pascal] Graphing library

2020-11-15 Thread leledumbo via fpc-pascal
ist that I could build upon. TAChart works with NoGUI LCL interface: https://wiki.freepascal.org/TAChart_Demos#nogui -- Sent from: http://free-pascal-general.1045716.n5.nabble.com/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Bart via fpc-pascal
On Fri, Nov 20, 2020 at 4:38 PM Graeme Geldenhuys via fpc-pascal wrote: > We often have color output and > full Unicode support - so we can output color and emojis to highlight certain > success > or error states in the output. It would be nice to incorporate that into > comm

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Amir via fpc-pascal
AnsiString = ('--InputFile:AnsiString', '--Debug:Boolean'); ValidArgumentsValues : array of AnsiString = ('', 'True'); The second array, ValidArgumentsValue (which should be renamed to DefaultValues) set the default values, if none provided. Amir On 11/20/20 2:38 AM, B

Re: [fpc-pascal] I'm working on automated Help Output for console apps

2020-11-20 Thread Bart via fpc-pascal
On Fri, Nov 20, 2020 at 7:21 PM Sven Barth via fpc-pascal wrote: >> You know that fpc trunk now supports coloured output of the compiler >> (messages)? > > > Only on *nix and those versions of Windows 10 that support VT100 codes. > I know, and there he can see how thi

[fpc-pascal] Initialization of constant record member of pointer type

2020-11-30 Thread LacaK via fpc-pascal
here 'abcd' is stored I would like to initialize a to be pointer to another known constant or directly to supplied string constant. For example something like: const   MyConst1='abcd';   MyConst2=TMyRec = (a: @MyConst1); TIA -Laco. _____

Re: [fpc-pascal] Initialization of constant record member of pointer type

2020-12-01 Thread LacaK via fpc-pascal
Dňa 30.11.2020 o 23:26 Sven Barth via fpc-pascal napísal(a): Am 30.11.2020 um 13:20 schrieb LacaK via fpc-pascal: Hi, is there a way how to initialize record member of pointer type (other than PChar) in the following example: type   TMyRec=record     a: PByte; // if I change PByte to

Re: [fpc-pascal] New User

2020-12-02 Thread greim--- via fpc-pascal
Fantastic, a real good introduction for us old Pascalians !! We should send a link to Niklaus Wirth ;-) Markus Greim --- original message --- On November 30, 2020, 12:09 PM GMT+1 fpc-pascal@lists.freepascal.org wrote: On Mon, Nov 30, 2020 at 4:43 AM Derek Stewart via fpc-pascal wrote

Re: [fpc-pascal] Initialization of constant record member of pointer type

2020-12-02 Thread LacaK via fpc-pascal
Dňa 2.12.2020 o 13:55 Tomas Hajny via fpc-pascal napísal(a): On 2020-12-01 11:39, Ladislav Karrach via fpc-pascal wrote: Because MyConst1 is not an *untyped* constant. Only untyped constants can be used in constant expressions (a pointer to something can be considered an untyped constant

Re: [fpc-pascal] Initialization of constant record member of pointer type

2020-12-04 Thread LacaK via fpc-pascal
Dňa 2.12.2020 o 16:09 Tomas Hajny via fpc-pascal napísal(a): On 2020-12-02 16:01, LacaK via fpc-pascal wrote: Dňa 2.12.2020 o 13:55 Tomas Hajny via fpc-pascal napísal(a): On 2020-12-01 11:39, Ladislav Karrach via fpc-pascal wrote: Because MyConst1 is not an *untyped* constant. Only untyped

Re: [fpc-pascal] Initialization of constant record member of pointer type

2020-12-14 Thread LacaK via fpc-pascal
.0 but not under FPC 3.2 I have updated test program (now compiles also under FPC 3.2) Thanks -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Initialization of constant record member of pointer type

2020-12-14 Thread LacaK via fpc-pascal
;):    MyConst1: array[0..2] of AnsiChar = 'abc';    MyConst2: TMyRec = (l: Length(MyConst1); a: @MyConst1); (but it does not work with plain "AnsiString" as mentioned above) -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Initialization of constant pointer type - bug? [was: Re: Initialization of constant record member of pointer type]

2020-12-16 Thread LacaK via fpc-pascal
under FPC 3.2) Thanks -Laco. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Selecting Records with a variable

2020-12-19 Thread wkitty42--- via fpc-pascal
On 12/19/20 7:16 PM, James Richters via fpc-pascal wrote: Is there some syntax that would work to select the correct record based on the variable so I can avoid having all the If statements? do you need to show only one at a time or are you looping through and printing all of them each time

Re: [fpc-pascal] Selecting Records with a variable

2020-12-20 Thread wkitty42--- via fpc-pascal
ce is given without prior approval. *Please keep mailing list traffic on the list where it belongs!* ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

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

2020-12-21 Thread rvmartin2--- via fpc-pascal
Sven Barth via fpc-pascal wrote the following on 21/12/2020, 13:13:08: > Nikolay Nikolov via fpc-pascal schrieb am > Mo., 21. Dez. 2020, 11:36: > > > > > On 12/21/20 10:42 AM, Markus Greim wrote: > > > > FPC has had a Turbo Pascal-like console IDE f

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 = ar

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

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

2020-12-24 Thread greim--- via fpc-pascal
. Really an impressive chip. Getting all relevant info and testing and evaluating all the different development platforms is still demanding. But situation is getting better each day. Pascal on the Propeller itself would be possible. There are CPM2.2 emulator for the Propeller around, so TurboPascal

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

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] Avoiding File conflicts

2021-01-04 Thread Bart via fpc-pascal
On Mon, Jan 4, 2021 at 3:19 AM James Richters via fpc-pascal wrote: > I suspect that I happen to see the file is there and try to read it before > the program that created the file is done writing it. > What is the proper way to detect the file is in use so I don't bother trying

Re: [fpc-pascal] Avoiding File conflicts

2021-01-05 Thread wkitty42--- via fpc-pascal
On 1/4/21 11:06 AM, Bart via fpc-pascal wrote: On Mon, Jan 4, 2021 at 3:19 AM James Richters via fpc-pascal wrote: I suspect that I happen to see the file is there and try to read it before the program that created the file is done writing it. What is the proper way to detect the file is in

Re: [fpc-pascal] Avoiding File conflicts

2021-01-05 Thread Bart via fpc-pascal
On Tue, Jan 5, 2021 at 3:30 PM wkitty42--- via fpc-pascal wrote: > provided the other program opens the file for creation properly (eg: > blahDenyAll), right? Maybe use fmShareExclusive when opening the file. That name suggest you can only open if you are the only one? --

[fpc-pascal] Question about System.Move()

2021-01-09 Thread Bart via fpc-pascal
the array? 2. Is it OK if the elements of the array are (or contain) managed types? 3. Are there caveats if T is a specialization of a generic type definition? -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

Re: [fpc-pascal] Question about System.Move()

2021-01-09 Thread Bart via fpc-pascal
On Sat, Jan 9, 2021 at 5:12 PM Yuriy Sydorov via fpc-pascal wrote: > > 2. Is it OK if the elements of the array are (or contain) managed types? > > You need to manually finalize/free elements which are overwritten before > calling Move. So, if I move Arr[3] to Arr[1], I first h

Re: [fpc-pascal] Question about System.Move()

2021-01-09 Thread Bart via fpc-pascal
On Sat, Jan 9, 2021 at 8:14 PM Yuriy Sydorov via fpc-pascal wrote: > > So, I'll use a for loop to copy the data. > > > > I assume that doing Arr[Index] := Default(T) will also finalize the > > element if that element ismanaged? > > For class object instan

Re: [fpc-pascal] Question about System.Move()

2021-01-11 Thread Bart via fpc-pascal
On Sun, Jan 10, 2021 at 12:09 PM Sven Barth via fpc-pascal wrote: > If after the Move only one of the two references is reachable anymore > (because e.g. some internal count variable "ends" the array before that > element) then you don't need to care about increasing the

Re: [fpc-pascal] Question about System.Move()

2021-01-13 Thread Bart via fpc-pascal
On Sun, Jan 10, 2021 at 12:09 PM Sven Barth via fpc-pascal wrote: > If after the Move only one of the two references is reachable anymore > (because e.g. some internal count variable "ends" the array before that > element) then you don't need to care about increasing the

Re: [fpc-pascal] Windows Defender considers fp.exe a malicious program

2021-02-12 Thread Bart via fpc-pascal
On Fri, Feb 12, 2021 at 9:10 AM Alexander Bunakov via fpc-pascal wrote: > As of trunk r48648, Windows Defender deletes fp.exe after compilation > because it considers it an infected file. It claims that fp.exe is > infected with Trojan:Win32/Fuerboos.E!cl and quarantines the file. I ex

Re: [fpc-pascal] Windows Defender considers fp.exe a malicious program

2021-02-13 Thread Ched via fpc-pascal
. Cheers, Ched Le 13.02.21 à 12:02, Marco van de Voort via fpc-pascal a écrit : Op 2021-02-12 om 22:48 schreef James Richters via fpc-pascal: The problem I have had is when programs I compile generate a false virus detection.. sure on my own computer I can just disable that directory from the

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 o

[fpc-pascal] Questions from Semi-Beginner

2021-02-20 Thread CSlemaker via fpc-pascal
Title: OS Upgrade Windows 7 to Windows 10 – Free Pascal Consequences ? I am currently running under Windows 7 but I MUST upgrade to Windows 10 Pro. My questions relate to the version of the Pascal compiler I've been using for years and compatibility of the numerous object-code files produc

Re: [fpc-pascal] Why has the tkFloat default value changed?

2021-03-01 Thread Peter via fpc-pascal
On 28/02/2021 22:11, Mattias Gaertner via fpc-pascal wrote: Hi, In FPC 3.2.0 the default "Default" value of a single/double property has changed from $8000 (fpc 3.0.4) to 0. This breaks TWriter. The $8000 means the property has no default value. Now FPC 3.2.0 no longe

Re: [fpc-pascal] Unicode chars losing information

2021-03-07 Thread Bart via fpc-pascal
On Sun, Mar 7, 2021 at 5:31 PM Marco van de Voort via fpc-pascal wrote: > Probably it is not in the BMP and thus needs more position than one. Length(Char) is 5 according to fpc, I see 5 "graphemes", which suggest that all of them fit into 1 WideCh

Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-09 Thread LacaK via fpc-pascal
I did run test program on RaspberryPI: Linux+ARM and results are as expected. (FPC 3.2.0) -Laco. Dňa 9.3.2021 o 1:47 Toru Takubo via fpc-pascal napísal(a): On 2021/03/08 16:54, Michael Van Canneyt via fpc-pascal wrote: On Mon, 8 Mar 2021, Toru Takubo via fpc-pascal wrote: Hi, I am

Re: [fpc-pascal] Cannot write datetime field on sqlite3 database on ARM

2021-03-09 Thread LacaK via fpc-pascal
Dňa 9.3.2021 o 15:34 Toru Takubo via fpc-pascal napísal(a): On 2021/03/09 18:11, LacaK via fpc-pascal wrote: I did run test program on RaspberryPI: Linux+ARM and results are as expected. (FPC 3.2.0) -Laco. Thank you for your reproduction test. It may be a good news that the problem would

[fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread LacaK via fpc-pascal
procedures/functions ? 2.2  methods of classes (non virtual, virtual) ? 2.3  class methods of classes ? Thank you -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread LacaK via fpc-pascal
be some infos about behavior on various targets) -Laco. On 10/03/2021 13:17, Yuriy Sydorov via fpc-pascal wrote: On 10.03.2021 11:34, LacaK via fpc-pascal wrote: A.) I compile my (units) program/library with -CX -XX (set in Project Options) Just a small note: -CX -XX are not needed for the

Re: [fpc-pascal] Smart-linking versus Whole Program Optimization

2021-03-10 Thread LacaK via fpc-pascal
not insist that it must be written in this way, but something should be there explained. Goal is that: reader should understand what can expect from smart-linking. -Laco. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

[fpc-pascal] JSONStringToString question

2021-03-13 Thread Bart via fpc-pascal
From : https://www.freepascal.org/docs-html/current/fcl/fpjson/jsonstringtostring.html Function result Pascal string with escaped characters replaced {$mode objfpc} {$h+} uses fpjson; var S1, S2: TJSONStringType; begin repeat write('S: ');readln(S2); S1 := JSONStringT

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 12:43 AM Michael Van Canneyt via fpc-pascal wrote: > > Do I misunderstand the purpose of this function or is this a bug? > > Seems like a bug. I'll report it then. Do you know if we have a test suite for this function, so I can test if there ar regressi

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 1:49 PM Bart wrote: > Do you know if we have a test suite for this function, so I can test > if there ar regressions when I try to fix it? Found it already. I think I have a fix, will report it. -- Bart ___ fpc-

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 2:55 PM Bart wrote: > I think I have a fix, will report it. Reported as https://bugs.freepascal.org/view.php?id=38622 Possible patch attached in the bugreport. -- Bart ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: > Fixed. Thanks for the patch. > There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2 fixes branch? --

Re: [fpc-pascal] fpreport: can not use two ObjectLists as datasource in one report

2021-03-19 Thread Bart via fpc-pascal
On Fri, Mar 19, 2021 at 7:14 PM Michael Van Canneyt via fpc-pascal wrote: > > Done: 0038639 , but i am not able to set the severity to 'feature' > > Hm. Strange. I did it for you. This has been disabled for "normal" reporters, since too many reporters marked thei

Re: [fpc-pascal] Hide warning number

2021-03-25 Thread Bart via fpc-pascal
On Thu, Mar 25, 2021 at 8:08 PM Ryan Joseph via fpc-pascal wrote: > Is there a way to hide a warning for all files from the command line? The > "not inlined" warnings (6058) are too numerous to even be useful anymore so > I'd like to disable it. From my fpc.cfg: #Do

[fpc-pascal] Minimal size of compiled library (DLL under Windows)

2021-04-03 Thread LacaK via fpc-pascal
. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Minimal size of compiled library (DLL under Windows)

2021-04-06 Thread LacaK via fpc-pascal
can not help? -Laco. _______ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Minimal size of compiled library (DLL under Windows)

2021-04-06 Thread LacaK via fpc-pascal
which code is realy not needed ... WPO in this regard can not help? No. There is no way for WPO to know what side effects the initialisation of those variables could have. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal

<    1   2   3   4   5   6   7   8   9   10   >