View previous topic :: View next topic |
Author |
Message |
Ligustah
Joined: 21 Oct 2007 Posts: 45 Location: Berlin, Germany
|
Posted: Wed Jun 11, 2008 11:40 am Post subject: Compiler Bug in MiniD2? |
|
|
Hi,
i played with MiniD2, really cool
However,
i found out that this code: Code: | function test(blubb)
{
import ("test_" ~ blubb)
} |
Seems to crash the compiler: Quote: | tango.core.Exception.AssertException@minid\compiler.d(2084): reg not freed in order |
I'm not sure whether this is a compiler bug or if the MiniD code above is just invalid.
Well,
it's your turn to find out
Mfg Ligustah |
|
Back to top |
|
|
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Wed Jun 11, 2008 3:14 pm Post subject: |
|
|
Any time you get an assertion failure, it's a bug :S
Fixed it, you can update |
|
Back to top |
|
|
Ligustah
Joined: 21 Oct 2007 Posts: 45 Location: Berlin, Germany
|
Posted: Thu Jun 12, 2008 5:28 am Post subject: |
|
|
Thanks,
Bug-hunting FTW!
Ligustah |
|
Back to top |
|
|
Aphadon
Joined: 16 Aug 2007 Posts: 9
|
Posted: Thu Jun 12, 2008 12:03 pm Post subject: |
|
|
I dont get MD2 compiled...but I thought its compilable?
Simply doing 'dsss build minid':
Code: | minid\bind.d(696): Error: identifier 'MDClass' is not defined
minid\bind.d(696): Error: MDClass is used as a type
minid\bind.d(696): class minid.bind.WrappedClass base type must be class or interface, not void
...
and so on |
I got it from here http://www.dsource.org/projects/minid/browser/branches/v2 |
|
Back to top |
|
|
Ligustah
Joined: 21 Oct 2007 Posts: 45 Location: Berlin, Germany
|
Posted: Thu Jun 12, 2008 2:40 pm Post subject: |
|
|
The bind library has to be ported yet.
Just exclude that file from compilation and it should all work fine.
Ligustah |
|
Back to top |
|
|
Aphadon
Joined: 16 Aug 2007 Posts: 9
|
Posted: Thu Jun 12, 2008 2:57 pm Post subject: |
|
|
Thanks, got it working. |
|
Back to top |
|
|
|