www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Forward referencing problem still present in DMD 0.96

reply stonecobra <scott stonecobra.com> writes:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Attached is the requisite 10 line file :)

The file is compiled with 'dmd fwdref.d', and DMD then GPFs, with the 
following line on stderr:

fwdref.d(2): interface XMLFilter base XMLReader is forward referenced

Please don't say that the answer is to reorder the definition, as this 
is generated from a mechanical java -> D translation process, and would 
be implausible if not impossible to do (currently translating SAX2 to D, 
so we can have an XML parser).

Thanks
Scott Sanders
Jul 25 2004
parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
stonecobra wrote:

 Attached is the requisite 10 line file :)
 
 The file is compiled with 'dmd fwdref.d', and DMD then GPFs, with the 
 following line on stderr:
 
 fwdref.d(2): interface XMLFilter base XMLReader is forward referenced
 
 Please don't say that the answer is to reorder the definition, as this 
 is generated from a mechanical java -> D translation process, and would 
 be implausible if not impossible to do (currently translating SAX2 to D, 
 so we can have an XML parser).

And also because, when modules depend on each other, there are places where it can't (easily) be avoided.... Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
Jul 26 2004
parent reply stonecobra <scott stonecobra.com> writes:
Stewart Gordon wrote:

 stonecobra wrote:
 
 Attached is the requisite 10 line file :)

 The file is compiled with 'dmd fwdref.d', and DMD then GPFs, with the 
 following line on stderr:

 fwdref.d(2): interface XMLFilter base XMLReader is forward referenced

 Please don't say that the answer is to reorder the definition, as this 
 is generated from a mechanical java -> D translation process, and 
 would be implausible if not impossible to do (currently translating 
 SAX2 to D, so we can have an XML parser).

And also because, when modules depend on each other, there are places where it can't (easily) be avoided....

I just didn't want people to take the easy road because I made the 10 line example to make it easy for Walter to fix. Scott Sanders
Jul 26 2004
parent "Walter" <newshound digitalmars.com> writes:
"stonecobra" <scott stonecobra.com> wrote in message
news:ce38po$1660$1 digitaldaemon.com...
 I just didn't want people to take the easy road because I made the 10
 line example to make it easy for Walter to fix.

Yes, thank-you, this is just what I need to fix it. -Walter
Jul 26 2004