View previous topic :: View next topic |
Author |
Message |
hohumsmaster
Joined: 23 Jul 2006 Posts: 6
|
Posted: Sat Jan 13, 2007 7:31 pm Post subject: Using mango |
|
|
I know all your attention is probably on Tango.Mango will mango work with DMD 1.0?
I tried to compile the simple hello.d program on windows with these results:
D:\program files\poseidon\bud_win_3.04.exe main.d -DCPATHc:\dmd\bin -Ttest.exe -IC:\dmd\include -odobjs
c:\dmd\src\mango\mango\io\model\IConduit.d(358): Error: cannot implicitly convert expression (1 + 128) of type int to Access
c:\dmd\src\mango\mango\io\model\IConduit.d(359): Error: cannot implicitly convert expression (2 + 128) of type int to Access
c:\dmd\src\mango\mango\io\model\IConduit.d(360): Error: cannot implicitly convert expression (3 + 128) of type int to Access
Its these lines that are failing:
const Bits ReadText = {Access.Read + Access.Text};
const Bits WriteText = {Access.Write + Access.Text};
const Bits ReadWriteText = {Access.ReadWrite + Access.Text};
Is there something I'm missing? |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Sun Jan 14, 2007 12:20 am Post subject: |
|
|
To be wholly truthful, Tango has taken all of my attention for a while, and that of others -- to the detriment of Mango. Mango is currently not compatible with dmd 1.0, mostly due to the .ptr change (heaps of them in mango.icu) and a few other compiler changes like the one you're running into.
Mango is epected to be brought up to date next month, but I should note that anyone using Mango will find Tango to be a most comfortable fit.
The plan for Mango is to migrate it over to Tango-land as things move forward. Whilst some segments of the new library are clearly Mango-based, the rest of the Mango code will likely become one of the so-called "compatible libriaries" -- that's why tango.mango exists.
For example, the HttpServer is not part of core Tango, nor the clustering package, nor the ICU wrappers. They'll all live as bolt-ons instead. The intent is to keep the core library as a "middleweight" solution -- to avoid making one approach to a problem become "de-facto" and thereby discouraging other to build something better. A different web-server design, for example. I think of something like a web-server as a fairly 'heavyweight' piece of gear -- such things really don't have any business in core Tango. They do make dandy bold-ons though
- Kris |
|
Back to top |
|
|
hohumsmaster
Joined: 23 Jul 2006 Posts: 6
|
Posted: Sun Jan 14, 2007 12:57 am Post subject: |
|
|
No worries,
Thanks for the information. I'm only learning mango at the moment for some server stuff I wanted to experiment with.
So I guess I'll need to rollback dmd. What version worked best with mango for server/client side stuff?
-Joel |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Sun Jan 14, 2007 5:05 pm Post subject: |
|
|
pre dmd 177 *should* work fine. I guess -d is meant to work with later compilers, by disabling the .ptr change? |
|
Back to top |
|
|
|