A few general thoughts

2011-04-29 Thread lenochware
This post is in fact mainly about removing delete, but I didn't wont make everyone angry just with title.:) I am sure not expert to language design, so I should probably be quiet, but I have question. My question is: Didn't break it (i.e. removing delete) compatibility? In my opinion every decisio

Re: A few general thoughts

2011-04-29 Thread Denis Koroskin
On Fri, 29 Apr 2011 12:30:59 +0400, lenochware wrote: I was not happy with error message "invalid utf8 character". I am using international character in my strings and compiler gives me this message. Of course, I can switch my source codes into utf8, but here are few tricks which can be d

Re: A few general thoughts

2011-04-29 Thread Francisco Almeida
On 29-04-2011 10:30, lenochware wrote: This post is in fact mainly about removing delete, but I didn't wont make everyone angry just with title.:) I am sure not expert to language design, so I should probably be quiet, but I have question. My question is: Didn't break it (i.e. removing delete) co

Re: A few general thoughts

2011-04-29 Thread Alexander
On 29.04.2011 10:54, Francisco Almeida wrote: > The options for memory management are still kept open, and the best we can do > is hope that the GC is improved in the near future. I'd say that *before* this happens actually (very effective GC), it is a bit too early to deprecate delete. /Ale

Re: A few general thoughts

2011-04-29 Thread Alexander
On 29.04.2011 10:42, Denis Koroskin wrote: > You source code however *SHOULD* remain in UTF-8 (with ASCII being a subset > of it). If it "should", not "must" - then there should be switch to disable this restriction, IMHO ;) /Alexander

Re: A few general thoughts

2011-04-29 Thread lenochware
== Quote from Denis Koroskin (2kor...@gmail.com)'s article > You can use import("file.txt"); to import files (text or binary) at > compile time. Interesting - I didn't know this. It's true that most of strings will be probably loaded from some file in final application...

Re: A few general thoughts

2011-04-29 Thread lenochware
> This has been acknowledged. Yes, removing delete in D2 will break > compatibility with existing code. However, I'm sure that at an early > stage, the compiler will probably issue error messages once it > encounters delete statements, for which the fix is quite easy: just > remove them, and recomp

Re: A few general thoughts

2011-04-29 Thread Daniel Gibson
Am 29.04.2011 12:11, schrieb lenochware: This has been acknowledged. Yes, removing delete in D2 will break compatibility with existing code. However, I'm sure that at an early stage, the compiler will probably issue error messages once it encounters delete statements, for which the fix is quite e

Re: A few general thoughts

2011-04-29 Thread Don
Daniel Gibson wrote: Am 29.04.2011 12:11, schrieb lenochware: This has been acknowledged. Yes, removing delete in D2 will break compatibility with existing code. However, I'm sure that at an early stage, the compiler will probably issue error messages once it encounters delete statements, for wh

Re: A few general thoughts

2011-04-29 Thread Francisco Almeida
On 29-04-2011 12:37, Daniel Gibson wrote: Am 29.04.2011 12:11, schrieb lenochware: This has been acknowledged. Yes, removing delete in D2 will break compatibility with existing code. However, I'm sure that at an early stage, the compiler will probably issue error messages once it encounters dele

Re: A few general thoughts

2011-04-29 Thread Daniel Gibson
Am 29.04.2011 13:11, schrieb Francisco Almeida: > On 29-04-2011 12:37, Daniel Gibson wrote: >> Am 29.04.2011 12:11, schrieb lenochware: This has been acknowledged. Yes, removing delete in D2 will break compatibility with existing code. However, I'm sure that at an early stage, the co

Re: A few general thoughts

2011-04-29 Thread lenochware
== Quote from Daniel Gibson (metalcae...@gmail.com)'s article > Once a feature is deprecated, the compiler will treat using it as an > error - *if* you don't use the "-d" switch ("Allow deprecated features"). > I think this should be acceptable for you? > Cheers, > - Daniel Seems good. Sorry, I di

Re: A few general thoughts

2011-04-29 Thread Alexander
On 29.04.2011 14:03, Daniel Gibson wrote: > Once a feature is deprecated, the compiler will treat using it as an > error - *if* you don't use the "-d" switch ("Allow deprecated features"). Probably it would be a better choice to selectively disable deprecated features - some may be fixed quick

Re: A few general thoughts

2011-04-29 Thread KennyTM~
On Apr 29, 11 17:53, lenochware wrote: == Quote from Denis Koroskin (2kor...@gmail.com)'s article You can use import("file.txt"); to import files (text or binary) at compile time. Interesting - I didn't know this. It's true that most of strings will be probably loaded from some file in final

Re: A few general thoughts

2011-04-30 Thread Jonathan M Davis
> This post is in fact mainly about removing delete, but I didn't wont make > everyone angry just with title.:) I am sure not expert to language design, > so I should probably be quiet, but I have question. > My question is: Didn't break it (i.e. removing delete) compatibility? > > In my opinion e

Re: A few general thoughts

2011-05-01 Thread lenochware
== Quote from KennyTM~ (kenn...@gmail.com)'s article > You could use x"" string, or just escape those characters > auto x = x"f1f2f3 f4"; > auto y = "\xf1\xf2\xf3\xf4"; > (And if your "string" is not a UTF-8 string at all, you should use a > ubyte[], not char[]. > const(ubyte)[] z =

Re: A few general thoughts

2011-05-01 Thread KennyTM~
On May 1, 11 21:23, lenochware wrote: == Quote from KennyTM~ (kenn...@gmail.com)'s article You could use x"" string, or just escape those characters auto x = x"f1f2f3 f4"; auto y = "\xf1\xf2\xf3\xf4"; (And if your "string" is not a UTF-8 string at all, you should use a ubyte[], not

Re: A few general thoughts

2011-05-03 Thread lenochware
== Quote from KennyTM~ (kenn...@gmail.com)'s article > It's very *unportable* to write a string in your way. Yes, that's probably true. > If D allowed non-UTF encoding without error, it's possible that a string > in those settings got misinterpreted, but it's not easy to determine when. Could be