11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.1 Syntax and Semantics • 53The exports Procedure You can determine the names of the exportsof a module by using the exports procedure.> exports( Hello );say> exports( NormalModule );eThis returns the global instances of the export names.> exports( m );e> evalb( % = e );trueYou can also obtain the local instances of those names by passing theoption instance.> exports( m, ’instance’ );e> evalb( % = e );false> evalb( %% = m:-e );trueFor this reason, you cannot have the same name declared both as alocal and an export.> module() export e; local e; end;Error, export and local ‘e‘ have the same name

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!