ascot diagnostics

A1368

Warning: Not in a class context; this relies on $this being set when it runs

..Member, $this or ##this appears in a routine, which belongs to no class. IRIS compiles the routine, and at run time $this is the current object of the method that called it, if a method did. With no current object, ..Member raises <NO CURRENT OBJECT>. Pass the object in as an argument instead, which lets ascot check the member.

IRIS compiles the example, and do Main^Demo.NotInClass raises <NO CURRENT OBJECT> when it runs.

ROUTINE Demo.NotInClass
Main
    Write ..Name, ! //! A1368
    Quit

All diagnostics