Ticket #39 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

Emit an error if modules are recursive.

Reported by: benl Owned by: erikd
Priority: normal Milestone: 0.1.4
Component: Compilation Driver Version:
Keywords: Cc:

Description

We don't handle recursive module yet, so should at least emit an error.

Currently, the compilation driver does into an endless loop.

Change History

Changed 5 years ago by erikd

  • owner set to erikd
  • status changed from new to assigned

Changed 5 years ago by erikd

Test is T39-RecursiveModule?.

Four modules; Main.ds, A.ds, B.ds and C.ds.

Main imports B which imports C which imports A which imports B creating a cycle: A -> B -> C -> A.

Changed 5 years ago by erikd

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in the following set of patches:

Fri Nov 13 23:13:28 EST 2009 Erik de Castro Lopo <erikd@…>

Fri Nov 13 22:34:31 EST 2009 Erik de Castro Lopo <erikd@…>

  • Fix #39 : Error out on mutually recursive module import.

Fri Nov 13 20:18:40 EST 2009 Erik de Castro Lopo <erikd@…>

  • Panic on mutually recursive modules instead of blowing the stack.

Still need to convert the panic to an error.

Note: See TracTickets for help on using tickets.