Runtime error in code on main page

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 24 20:03:25 PDT 2015


On Mon, Aug 24, 2015 at 08:01:12PM -0700, H. S. Teoh via Digitalmars-d wrote:
> On Tue, Aug 25, 2015 at 02:34:11AM +0000, rsw0x via Digitalmars-d wrote:
> > On Tuesday, 25 August 2015 at 02:24:32 UTC, H. S. Teoh wrote:
> > >On Tue, Aug 25, 2015 at 01:27:36AM +0000, Adrian via Digitalmars-d wrote:
> > >>The "Get your local weather report" sample code on the main page
> > >>generates the following error:
> > >>
> > >>/d683/f748.d(32): Error: undefined identifier centerJustifier
> > >>
> > >>Someone might want to address that.
> > >
> > >It works on the latest git HEAD. Which version of the compiler are
> > >you using?  That example probably should be reworked to work with
> > >earlier compilers. :-)
> > >
> > >
> > >T
> > 
> > He means the example that you can run in-browser.
> > He's right, it fails.
> 
> It works on git HEAD.
> 
> But apparently not on older compilers.
[...]

Apparently it works on dmd-2.068.0 as well, but not on dmd-2.066.1. Not
sure exactly where it started working, but it should be revised to work
on older compilers.


T

-- 
Long, long ago, the ancient Chinese invented a device that lets them see through walls. It was called the "window".


More information about the Digitalmars-d mailing list