Skip to content

Check LocalImportProcedure

github-actions[bot] edited this page Mar 6, 2024 · 2 revisions

Possibly meant _import instead of _local.

Noncompliant Code Example

_method a.m()
  _local log_stream << !terminal!
  _proc@do_something()
    _local log_stream
    log_stream.write("hello from do_something")
  _endproc
_endmethod

Compliant Solution

_method a.m()
  _local log_stream << !terminal!
  _proc@do_something()
    _import log_stream
    log_stream.write("hello from do_something")
  _endproc
_endmethod

NOTE: This page is generated. Any changes made to this page through the wiki will be lost in the future.