static variable A cannot be read at compile time

Newbie2019 newbie2019 at gmail.com
Wed Jun 12 13:12:58 UTC 2019


https://run.dlang.io/is/s4cfiv

onlineapp.d(23): Error: static variable A cannot be read at 
compile time
onlineapp.d(23): Error: cannot implicitly convert expression 1 of 
type int to int*

I see no reason the code should not work,  and the second error 
message make no sense.

please suggestion how should I made this code to work.




More information about the Digitalmars-d-learn mailing list