Hi,
I'm trying to find out compact ways of initializing class instances, but I feel my gaps in the understanding of how this works are somewhat big because
my google-fu isn't helping me here.
Here a bit of code to showcase what I am trying to do: compactly initialize instances of object. What is the correct way of doing this?
Thanks!
{$mode objfpc}
program example;
uses fgl;
type
tfoo = class
x: Integer;
y: Double;
end;
foolist = specialize TFPGList<tfoo>;
var
zz : tfoo =(x:5, y:3.14); // doesn't work
// and how about this?
// yy : foolist = ??
begin
end.