Re: Packages

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
> 
> Perhaps yet another answer: since the system is meant to make binding an
> identifier
> to a variable a less error-prone process, and since it only deals with this
> issue, only the front end needs to be modified. Translated/bound code is
> unaffected,
> as well as any generated IL - I should add this IL bit to the paper as well.

Not true.  There's also the issue of taking routine_ids.  That requires
some communication between the front and back ends to let RTLookup and
CRTLookup to understand what's in and out of the packages.  I ran into
this implementing the symbol resolution.

It required changing the interface between front and backend (take a look
at the end of backend() in backend.e) and the initialization of 
translated code.  Take a look at the code generated before the call to 
eu_startup() in main-.c (and the changes to eu_startup() in be_runtime.e).

We'll need to run a similar drill for packages, regardless of how it 
finally gets done.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu