or :

module main;
//const S s = S(.5f); // Uncomment to make it compile
struct S
{
  float a;
  static S opCall( float a_ )
  {
    S s = { a_ };
    return s;
  }
  const S _s = S( 1f );
}
void main(){}

Reply via email to