On 22/04/2022 17:13, Rainer Stratmann via fpc-pascal wrote:
Am Freitag, 22. April 2022, 17:27:33 CEST schrieb Hairy Pixels via fpc-pascal:
On Apr 22, 2022, at 8:48 PM, Rainer Stratmann via fpc-pascal
From assembly to high-level language there is a huge step.
From high-level language to implici
On 29/12/2021 11:22, wkitty42--- via fpc-pascal wrote:
On 12/29/21 4:54 AM, Michael Van Canneyt via fpc-pascal wrote:
Translated to RPC: if you want speed, don't use HTTP or JSON. WST
offers a
binary protocol and plain TCP channel, it's bound to be much faster.
i'm sorry... what is WST? googl
On 29/10/2020 18:27, Ryan Joseph via fpc-pascal wrote:
Is it possible that the TypeInfo intrinsic could work with generic template types or is
this a bug? I get "Illegal qualifier" in the procedure below.
generic procedure DoThis(a: array of T);
begin
writeln(TypeInfo(T)^.name);
end;
Regar
On 21/10/2020 21:34, Ryan Joseph via fpc-pascal wrote:
I thought default would just return the first value in the enum but I guess
it's just zeros. Maybe we need a better default for objfpc mode.
The first element is returned by Low(TEnum), and the first value by
Ord(Low(TEnum)).
On 04/10/2020 20:58, James Richters via fpc-pascal wrote:
I’m wondering if there is a way to pass an array of values to a
Procedure without defining an array variable….
For example, if I have a Procedure:
Procedure DoSomething(X :Byte);
Then I can call it with a specific a variable like thi
On 25/03/2020 17:46, wkitt...@windstream.net wrote:
On 3/24/20 6:58 PM, Sven Barth via fpc-pascal wrote:
wkitt...@windstream.net schrieb am Di., 24. März 2020, 18:37:
you should figure out why typed constants are not being allowed/used
in your setup...
Typed constants can not be used to init
On 15/03/2020 12:06, Ryan Joseph via fpc-pascal wrote:
program test;
var
data: array[0..2] of integer;
begin
// Incompatible types: got "{Array Of Const/Constant Open} Array of ShortInt" expected
"Array[0..2] Of LongInt"
data := [1,2,3];
end.
With recent FPCs you can however do this:
On 03/02/2020 13:17, Sven Barth via fpc-pascal wrote:
Howard Page-Clark via fpc-pascal <mailto:fpc-pascal@lists.freepascal.org>> schrieb am Mo., 3. Feb.
2020, 11:22:
FPC 3.0.4 compiles this code excerpt without a murmur:
== code ==
{$mode objfpc}{$H+}
type
T
FPC 3.0.4 compiles this code excerpt without a murmur:
== code ==
{$mode objfpc}{$H+}
type
TSheetInfo = record
name: String;
tab: String;
title: String;
kind: TSheetKind; // an enumeration
color: TColor;
end;
TBaseSheet = class(TTabSheet)
protected
FSheetInfo:
On 30/07/17 19:55, Marcos Douglas B. Santos wrote:
I would like to instantiate my attribute only once inside constructor
and then it will be "const" or "final", I mean, immutable.
Today it is not possible, right? Any thoughts to the future?
It is not what you are asking for, but you can do this:
On 04/04/17 05:25, Ryan Joseph wrote:
Is it possible use FillChar on a multidimensional arrays?
arr: array of array of array of integer.
SetLength(arr, 3, 3, 3);
FillChar(arr[0], (3*3*3)*sizeof(integer), false);
I’m just getting crashes.
You can always use FillChar and its kin on specific 'ne
11 matches
Mail list logo