Re: [fpc-pascal] Tuples as variant arrays

2021-06-26 Thread Sven Barth via fpc-pascal
Am 26.06.2021 um 00:12 schrieb Ryan Joseph via fpc-pascal: Is it possible something like this could work? Seems like it should but I get an error (got MyRecord expected variant). {$mode objfpc} program unit_name; type TTuple = array of variant; type

Re: [fpc-pascal] Tuples as variant arrays

2021-06-26 Thread Michael Van Canneyt via fpc-pascal
On Fri, 25 Jun 2021, Dennis Lee Bieber via fpc-pascal wrote: On Fri, 25 Jun 2021 16:12:41 -0600, Ryan Joseph via fpc-pascal declaimed the following: Is it possible something like this could work? Seems like it should but I get an error (got MyRecord expected variant).

[fpc-pascal] Tuples as variant arrays

2021-06-25 Thread Ryan Joseph via fpc-pascal
Is it possible something like this could work? Seems like it should but I get an error (got MyRecord expected variant). {$mode objfpc} program unit_name; type TTuple = array of variant; type MyRecord = record end; var t: TTuple; r: MyRecord; i