static variable A cannot be read at compile time

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jun 12 13:53:09 UTC 2019


On Wed, Jun 12, 2019 at 01:12:58PM +0000, Newbie2019 via Digitalmars-d-learn wrote:
> 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.

Read: https://wiki.dlang.org/User:Quickfur/Compile-time_vs._compile-time


T

-- 
A mathematician is a device for turning coffee into theorems. -- P. Erdos


More information about the Digitalmars-d-learn mailing list