digitalmars.D.learn - How to dinamically create Tuples?
- Leonardo (2/2) Jan 27 2021 Hi, I want to know if are some way to dinamically create Tuples,
- Paul Backus (3/5) Jan 27 2021 No. D is a statically-typed language, so all types have to be
- H. S. Teoh (6/12) Jan 27 2021 But you can probably achieve equivalent semantics with an array of
- Leonardo (2/15) Jan 28 2021 Thanks you all, variant is more like I was expecting.
Hi, I want to know if are some way to dinamically create Tuples, with variable size and types defined at runtime. Thanks.
Jan 27 2021
On Wednesday, 27 January 2021 at 17:11:52 UTC, Leonardo wrote:Hi, I want to know if are some way to dinamically create Tuples, with variable size and types defined at runtime. Thanks.No. D is a statically-typed language, so all types have to be defined at compile time.
Jan 27 2021
On Wed, Jan 27, 2021 at 05:17:18PM +0000, Paul Backus via Digitalmars-d-learn wrote:On Wednesday, 27 January 2021 at 17:11:52 UTC, Leonardo wrote:But you can probably achieve equivalent semantics with an array of Variant (see std.variant). T -- Written on the window of a clothing store: No shirt, no shoes, no service.Hi, I want to know if are some way to dinamically create Tuples, with variable size and types defined at runtime. Thanks.No. D is a statically-typed language, so all types have to be defined at compile time.
Jan 27 2021
On Wednesday, 27 January 2021 at 17:28:00 UTC, H. S. Teoh wrote:On Wed, Jan 27, 2021 at 05:17:18PM +0000, Paul Backus via Digitalmars-d-learn wrote:Thanks you all, variant is more like I was expecting.On Wednesday, 27 January 2021 at 17:11:52 UTC, Leonardo wrote:But you can probably achieve equivalent semantics with an array of Variant (see std.variant). THi, I want to know if are some way to dinamically create Tuples, with variable size and types defined at runtime. Thanks.No. D is a statically-typed language, so all types have to be defined at compile time.
Jan 28 2021