It there a way to get this to compile?
Adam D. Ruppe
destructionator at gmail.com
Mon Sep 9 19:12:34 UTC 2019
On Monday, 9 September 2019 at 19:08:17 UTC, WhatMeWorry wrote:
> Is this even possible?
what are you trying to do?
if c is static, it just needs to be initialized by a helper
function, like
int helper() {
int c = 60;
foreach(f; foundations)
c += 10;
return c;
}
static int c = helper(); // it initializes based on teh function
now
More information about the Digitalmars-d-learn
mailing list