Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline internetfreak  
#1 Posted : Monday, July 15, 2013 3:15:35 AM(UTC)
internetfreak

Joined: 12/19/2011(UTC)
Posts: 529

Thanks: 10 times
Was thanked: 16 time(s) in 15 post(s)
Hey Guys,
this time I have a small question. With .NET 4.5 / C# 5.0, there were two new keywords introduced: async and await.
Because I'm also planning to develop a windows 8 app, I'm already aware what those keywords stand for and I wonder if I can use them in my DE projects and still would be able to serve as many platforms as possible.
I think the await keyword is very useful if you do large operations which you rather want to have asynchronous such as saving a file or other things (I'm sure there are opportunities where you can use that)

Again my question in a shorter form: Is it possible to use those two keywords?
I'm appreciating your answers

Best,
internetfreak
Mein Blog: www.internetfreak.net

- Inoffizieller DeltaEngine-Supporter und Tutorialschreiber -

Wanna join the discussion?! Login to your forum accountregister a new account. Or Connect via Facebook Twitter Google

Offline Benjamin  
#2 Posted : Monday, July 15, 2013 8:19:58 PM(UTC)
Benjamin

Medals: Admin

Joined: 8/20/2011(UTC)
Posts: 1,421
Location: Hannover

Thanks: 18 times
Was thanked: 97 time(s) in 92 post(s)
We like C#5 as well and use it quite a bit on the server, websites and services in general. It is also cool for networking.

However in the engine or games we never use it or need it. Maybe it might be helpful for some networking, but since networking is still very simple with just a few messages to support and most of them are fire and forget, we did not even bother.

For this reason the code base is completely C#4 right now, but you are free to use C#5 if you want and we will try to support it in the future as well. For Milestone 4 we will stick with C#4 support however.

On WP8 or W8 internally async and await is used of course, but we do not support it on the input code. Also feel free to use C#5 in your own tools or in any DE code you don't want to port right now, will work fine out of the box.

Edited by user Monday, July 15, 2013 8:21:25 PM(UTC)  | Reason: Not specified

Offline internetfreak  
#3 Posted : Tuesday, July 16, 2013 10:21:23 AM(UTC)
internetfreak

Joined: 12/19/2011(UTC)
Posts: 529

Thanks: 10 times
Was thanked: 16 time(s) in 15 post(s)
ok, so if I want to support all platforms, then I should stay on C#4.
Personally, I have no problem with that, my question was more or less a theoretical question, to find out if it could be possible to do that
No it is solved, thank you for the answer :)
Mein Blog: www.internetfreak.net

- Inoffizieller DeltaEngine-Supporter und Tutorialschreiber -
Rss Feed  Atom Feed
Users browsing this topic
OceanSpiders 2.0
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2023, Yet Another Forum.NET
This page was generated in 0.054 seconds.