Thread overview | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 26, 2004 Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Attachments: | 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 |
July 26, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to stonecobra | 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. |
July 26, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | 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
|
July 26, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to stonecobra | "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 |
July 27, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to stonecobra | On Sun, 25 Jul 2004 18:29:41 -0700, stonecobra wrote:
from the bugs group
> mechanical java -> D translation process,
can you share that!?
I started that translation but got lost on workarounds for
dmd (mine) problems.
I believe the DWT project should use a mechanical java -> D.
Ant
|
July 27, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ant | Ant wrote:
> On Sun, 25 Jul 2004 18:29:41 -0700, stonecobra wrote:
>
> from the bugs group
>
>
>>mechanical java -> D translation process,
>
>
> can you share that!?
>
> I started that translation but got lost on workarounds for
> dmd (mine) problems.
>
> I believe the DWT project should use a mechanical java -> D.
>
> Ant
>
I've heard rumors of this tool, with the XML intermediate language, and am looking forward to putting SWT code through it. Scott, let me know when it's ready, or if you want someone to kick the tires. And if Walter fixes the FRef bug with your example, we may get somewhere with DWT...
BA
|
July 27, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brad Anderson |
>> can you share that!?
>>
>> I started that translation but got lost on workarounds for dmd (mine)
>> problems.
>>
>> I believe the DWT project should use a mechanical java -> D.
>>
>> Ant
>>
>>
> I've heard rumors of this tool, with the XML intermediate language, and am looking forward to putting SWT code through it. Scott, let me know when it's ready, or if you want someone to kick the tires. And if Walter fixes the FRef bug with your example, we may get somewhere with DWT...
>
> BA
Uhh... might be a little late in the game for DWT, as far along as it is now. DWT is a pretty complicated beast. I wouldn't be surprised if such a tool would choke on SWT as much as we have personally in doing the conversion. I don't think the issues we experience from manual conversion magically disappear by using a automated tool. Problems with DWT right now are mostly dmd compiler and language oddities. I'd like to be wrong on this one, though!
It's certainly good to see such a tool becoming available. I'm sure it will be exceedingly useful in future projects.
|
July 27, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | >>I've heard rumors of this tool, with the XML intermediate language, and am >>looking forward to putting SWT code through it. Scott, let me know when >>it's ready, or if you want someone to kick the tires. And if Walter fixes >>the FRef bug with your example, we may get somewhere with DWT... >> > Uhh... might be a little late in the game for DWT, as far along as it is > now. DWT is a pretty complicated beast. I wouldn't be surprised if such a > tool would choke on SWT as much as we have personally in doing the > conversion. I don't think the issues we experience from manual conversion > magically disappear by using a automated tool. Problems with DWT right now > are mostly dmd compiler and language oddities. I'd like to be wrong on > this one, though! This tool happens to choke on anything more than an interface right now :) There are a boatload of non-syntactic things that the tool cannot do. You cannot get out of manual intervention, AFAICS. Sorry, your are not wrong :( You can try it out if you like, once I post it up, but you may be farther along on a lot of pieces than I can take you. For intranslated stuff, though, I would say give it a shot. > > It's certainly good to see such a tool becoming available. I'm sure it > will be exceedingly useful in future projects. > Thanks. Now, just to poison this thread (so you'll post over on the new thread: Source Level Java to D converter), which license should I use for it ;) ? Scott |
July 27, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to stonecobra | In article <ce6cjk$2j32$1@digitaldaemon.com>, stonecobra says... > > >Now, just to poison this thread (so you'll post over on the new thread: Source Level Java to D converter), which license should I use for it ;) ? isn't Walter fan of Artistic+GPL? GPL by itself is too restrictive. Ant |
July 27, 2004 Re: Forward referencing problem still present in DMD 0.96 | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | In article <pan.2004.07.27.19.48.44.706268@yahoo.com>, John Reimer says... > >>> >>> I believe the DWT project should use a mechanical java -> D. >>> >Uhh... might be a little late in the game for DWT, You know better but it's going to be hard to convince me ;) Ant |
Copyright © 1999-2021 by the D Language Foundation