FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using mango

 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
hohumsmaster



Joined: 23 Jul 2006
Posts: 6

PostPosted: Sat Jan 13, 2007 7:31 pm    Post subject: Using mango Reply with quote

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
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sun Jan 14, 2007 12:20 am    Post subject: Reply with quote

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 Smile

- Kris
Back to top
View user's profile Send private message
hohumsmaster



Joined: 23 Jul 2006
Posts: 6

PostPosted: Sun Jan 14, 2007 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Sun Jan 14, 2007 5:05 pm    Post subject: Reply with quote

pre dmd 177 *should* work fine. I guess -d is meant to work with later compilers, by disabling the .ptr change?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group