Re: DIP 1011 library alternative

2018-05-17 Thread IntegratedDimensions via Digitalmars-d
On Tuesday, 15 May 2018 at 21:25:05 UTC, Andrei Alexandrescu wrote: Hello, I was reviewing again DIP 1011 and investigated a library solution. That led to https://gist.github.com/run-dlang/18845c9df3d73e45c945feaccfebfcdc It builds on the opening examples in: https://github.com/dlang/DIPs/blo

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread KingJoffrey via Digitalmars-d
On Thursday, 17 May 2018 at 06:03:19 UTC, arturg wrote: you could declare the public api of your class inside an actual interface then use it instead of the class, that wont give you access to the private members of the class. you mean like this? module test; interface

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread arturg via Digitalmars-d
On Thursday, 17 May 2018 at 07:30:58 UTC, KingJoffrey wrote: On Thursday, 17 May 2018 at 06:03:19 UTC, arturg wrote: you could declare the public api of your class inside an actual interface then use it instead of the class, that wont give you access to the private members of the class. you

do not include sc.ini in zip files!

2018-05-17 Thread IntegratedDimensions via Digitalmars-d
Any custom modification swill overwrite the original sc.ini file. The compiler should copy(rename) or create the file on demand when it is ran and does not exist in the same path as the compiler. This way one can unzip over a previous install without losing the original sc.ini file. It is a p

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread KingJoffrey via Digitalmars-d
On Thursday, 17 May 2018 at 07:36:40 UTC, arturg wrote: no, that uses type inferance. you have to do Animal dog = new Dog; i tried it... certainly interesting.. thanks. but, I don't recall in my opening post, saying I'm ok with having to create an interface for every class I create, just so

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Mike Parker via Digitalmars-d
On Thursday, 17 May 2018 at 08:12:50 UTC, Mike Parker wrote: This is the review thread for the first Community Review round for DIP 1014, "Hooking D's struct move semantics". And the link to the DIP: https://github.com/dlang/DIPs/blob/38cec74a7471735559e3b8a7553f55102d289d28/DIPs/DIP1014.md

DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Mike Parker via Digitalmars-d
This is the review thread for the first Community Review round for DIP 1014, "Hooking D's struct move semantics". All review-related feedback on and discussion of the DIP should occur in this thread. The review period will end at 11:59 PM ET on May 31, or when I make a post declaring it comple

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread rikki cattermole via Digitalmars-d
On 17/05/2018 8:12 PM, Mike Parker wrote: This is the review thread for the first Community Review round for DIP 1014, "Hooking D's struct move semantics". All review-related feedback on and discussion of the DIP should occur in this thread. The review period will end at 11:59 PM ET on May 31,

Re: Default Template Instantiation

2018-05-17 Thread Heromyth via Digitalmars-d
On Monday, 19 September 2016 at 22:59:53 UTC, Jonathan Marler wrote: On Monday, 19 September 2016 at 22:17:34 UTC, Mathias Lang wrote: 2016-09-19 23:18 GMT+02:00 Jonathan Marler via Digitalmars-d < digitalmars-d@puremagic.com>: [...] No you can't. The example is wrong, but Stefan is right.

Re: do not include sc.ini in zip files!

2018-05-17 Thread Kagamin via Digitalmars-d
On Thursday, 17 May 2018 at 07:38:50 UTC, IntegratedDimensions wrote: This way one can unzip over a previous install without losing the original sc.ini file. It is a pain to have to remember to back it up every time(given if one updates slowly). You only need to back it up once. That or simpl

Re: Benchmark Game

2018-05-17 Thread rikki cattermole via Digitalmars-d
On 17/05/2018 8:50 PM, Chris wrote: For what it's worth, I came across this website: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ D is not there. Anyone interested, if it's worth it? It isn't happening /thread.

Re: do not include sc.ini in zip files!

2018-05-17 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 17 May 2018 at 07:38:50 UTC, IntegratedDimensions wrote: Any custom modification swill overwrite the original sc.ini file. The compiler should copy(rename) or create the file on demand when it is ran and does not exist in the same path as the compiler. Not detracting from your ar

Re: do not include sc.ini in zip files!

2018-05-17 Thread Kagamin via Digitalmars-d
On Thursday, 17 May 2018 at 07:38:50 UTC, IntegratedDimensions wrote: This way one can unzip over a previous install without losing the original sc.ini file. Also that's not a correct way to update, you should unzip into an empty folder or stray files can be left from the previous installatio

Benchmark Game

2018-05-17 Thread Chris via Digitalmars-d
For what it's worth, I came across this website: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ D is not there. Anyone interested, if it's worth it?

Re: Benchmark Game

2018-05-17 Thread ixid via Digitalmars-d
On Thursday, 17 May 2018 at 08:51:39 UTC, rikki cattermole wrote: On 17/05/2018 8:50 PM, Chris wrote: For what it's worth, I came across this website: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ D is not there. Anyone interested, if it's worth it? It isn't happening /thread.

Re: Benchmark Game

2018-05-17 Thread rikki cattermole via Digitalmars-d
On 17/05/2018 8:52 PM, ixid wrote: On Thursday, 17 May 2018 at 08:51:39 UTC, rikki cattermole wrote: On 17/05/2018 8:50 PM, Chris wrote: For what it's worth, I came across this website: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ D is not there. Anyone interested, if it's wor

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread Zoadian via Digitalmars-d
On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: I propose an idea, for discussion (robust discussion even better ;-) Add an new attribute to class, named 'sealed'. If class level protection is added, please do not call it sealed. People from c++ might be suprised by 'private' alr

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Shachar Shemesh via Digitalmars-d
On 17/05/18 11:22, rikki cattermole wrote: What is the benefit of opPostMove over copy constructors (not postblit)? The two are unrelated. A copy is a very different operation from a move. With a copy, you have to figure out how to duplicate the resources used by the object. With a move, no

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread KingJoffrey via Digitalmars-d
On Thursday, 17 May 2018 at 10:34:18 UTC, Zoadian wrote: On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: I propose an idea, for discussion (robust discussion even better ;-) Add an new attribute to class, named 'sealed'. If class level protection is added, please do not call it

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread kinke via Digitalmars-d
3. When deciding to move a struct instance, the compiler MUST emit a call to the struct's __move_post_blt after blitting the instance and before releasing the memory containing the old instance. __move_post_blt MUST receive references to both the pre- and post-move instances. This implies tha

Re: auto: useful, annoying or bad practice?

2018-05-17 Thread Kagamin via Digitalmars-d
On Monday, 30 April 2018 at 21:11:07 UTC, Gerald wrote: I'll freely admit I haven't put a ton of thought into this post (never a good start), however I'm genuinely curious what people's feeling are with regards to the auto keyword. I prefer types spelled as it helps to understand the code. In

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread Piotr Mitana via Digitalmars-d
On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: I propose an idea, for discussion (robust discussion even better ;-) Add an new attribute to class, named 'sealed'. No, not sealed as in Scala. No, not sealed as in C# sealed as in oxford dictionary (close securely, non-porous). w

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread KingJoffrey via Digitalmars-d
On Thursday, 17 May 2018 at 11:56:51 UTC, Piotr Mitana wrote: My opinion is that it's not worth a new keyword and time for implementing. In the same manner you could ask for removing friend concept from C++ as a bad concept. I don't answer the question whether this concept is good or bad - ju

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Shachar Shemesh via Digitalmars-d
I'm not sure I follow all of your comments. For the rest my comments, let's assume that the compiler may assume that __move_post_blt is a no-op if hasElaborateMove returns false. On 17/05/18 14:33, kinke wrote: 3. When deciding to move a struct instance, the compiler MUST emit a call to the s

Re: Benchmark Game

2018-05-17 Thread Chris M. via Digitalmars-d
On Thursday, 17 May 2018 at 09:26:34 UTC, rikki cattermole wrote: On 17/05/2018 8:52 PM, ixid wrote: On Thursday, 17 May 2018 at 08:51:39 UTC, rikki cattermole wrote: On 17/05/2018 8:50 PM, Chris wrote: For what it's worth, I came across this website: https://benchmarksgame-team.pages.debian.

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 05:01:54 UTC, Joakim wrote: On Wednesday, 16 May 2018 at 20:11:35 UTC, Andrei Alexandrescu wrote: On 5/16/18 1:18 PM, Joakim wrote: On Wednesday, 16 May 2018 at 16:48:28 UTC, Dmitry Olshansky wrote: On Wednesday, 16 May 2018 at 15:48:09 UTC, Joakim wrote: On Wednesd

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread Uknown via Digitalmars-d
On Thursday, 17 May 2018 at 11:18:52 UTC, KingJoffrey wrote: On Thursday, 17 May 2018 at 10:34:18 UTC, Zoadian wrote: On Thursday, 17 May 2018 at 02:32:07 UTC, KingJoffrey wrote: [...] People from c++ might be suprised by 'private' already. We do not have to confuse those c#ies too. Interest

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread Steven Schveighoffer via Digitalmars-d
On 5/16/18 10:32 PM, KingJoffrey wrote: I propose an idea, for discussion (robust discussion even better ;-) Add an new attribute to class, named 'sealed'. No, not sealed as in Scala. No, not sealed as in C# sealed as in oxford dictionary (close securely, non-porous). when sealed is applied

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread KingJoffrey via Digitalmars-d
On Thursday, 17 May 2018 at 11:56:51 UTC, Piotr Mitana wrote: To sum up [TLDR]: I don't see your arguments strong enough to alter the language (especially make a cross-language confusion over the "sealed" keyword), but DScaner check would still allow to track down what you consider bad. 'al

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread KingJoffrey via Digitalmars-d
On Thursday, 17 May 2018 at 13:28:19 UTC, Steven Schveighoffer wrote: Essentially, if you put your class you want "sealed" into it's own module, and then publicly import the module from the API module, you will get the same effect. This is even easier now with the package module than it used

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Kagamin via Digitalmars-d
Looks like requirement for @nogc @safe has no consequence as the DIP suggests to infer them anyway. On ideological side safety can't be a requirement because it would contradict its purpose of providing guarantee. Especially if the suggested use case is handling of dangling pointers.

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Shachar Shemesh via Digitalmars-d
On 17/05/18 16:42, Kagamin wrote: Looks like requirement for @nogc @safe has no consequence as the DIP suggests to infer them anyway. On ideological side safety can't be a requirement because it would contradict its purpose of providing guarantee. I think you are confusing __move_post_blt's i

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread Steven Schveighoffer via Digitalmars-d
On 5/17/18 9:38 AM, KingJoffrey wrote: On Thursday, 17 May 2018 at 13:28:19 UTC, Steven Schveighoffer wrote: Essentially, if you put your class you want "sealed" into it's own module, and then publicly import the module from the API module, you will get the same effect. This is even easier no

Re: Benchmark Game

2018-05-17 Thread Russel Winder via Digitalmars-d
On Thu, 2018-05-17 at 12:51 +, Chris M. via Digitalmars-d wrote: […] > He'll probably pop up and confirm for us since he somehow always > knows when we bring this up He has (had?) robot listeners trawling the various email collectors which would then let him know the Benchmarks Game was being

Re: DIP 1011 library alternative

2018-05-17 Thread Andrei Alexandrescu via Digitalmars-d
On 05/15/2018 08:44 PM, Jonathan Marler wrote: On Tuesday, 15 May 2018 at 21:25:05 UTC, Andrei Alexandrescu wrote: Hello, I was reviewing again DIP 1011 and investigated a library solution. That led to https://gist.github.com/run-dlang/18845c9df3d73e45c945feaccfebfcdc It builds on the opening

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Joakim via Digitalmars-d
On Thursday, 17 May 2018 at 13:14:46 UTC, Patrick Schluter wrote: This is not practical, sorry. What happens when your message loses the header? Exactly, the rest of the message is garbled. Why would it lose the header? TCP guarantees delivery and checksums the data, that's effective enough at

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread kinke via Digitalmars-d
On Thursday, 17 May 2018 at 12:36:29 UTC, Shachar Shemesh wrote: Again, as far as I know, structs are not copied when passed as arguments. They are allocated on the caller's stack and a reference is passed to the callee. If that's the case, no move (of any kind) is done. That's the exception

Re: Benchmark Game

2018-05-17 Thread Andrei Alexandrescu via Digitalmars-d
On 05/17/2018 04:50 AM, Chris wrote: For what it's worth, I came across this website: https://benchmarksgame-team.pages.debian.net/benchmarksgame/ D is not there. Anyone interested, if it's worth it? It would be well worth the effort.

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Andrei Alexandrescu via Digitalmars-d
On 05/17/2018 09:14 AM, Patrick Schluter wrote: I'm in charge at the European Commission of the biggest translation memory in the world. Impressive! Is that the Europarl?

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread kinke via Digitalmars-d
On Thursday, 17 May 2018 at 15:23:50 UTC, kinke wrote: See IR for https://run.dlang.io/is/1JIsk7. I should probably emphasize that the LLVM `byval` attribute is strange at first sight. Pseudo-IR `void foo(S* byval param); ... foo(S* byarg arg);` doesn't mean that the IR callee gets the S* po

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Kagamin via Digitalmars-d
On Thursday, 17 May 2018 at 13:50:26 UTC, Shachar Shemesh wrote: There is no such use case. Please remember that at the time opPostMove is called, both new and old memory are still allocated. That's an interesting moment too. A struct that was supposed to be moved is copied instead and exists

Re: in/out contracts on prototypes

2018-05-17 Thread Kagamin via Digitalmars-d
On Wednesday, 16 May 2018 at 19:16:11 UTC, Manu wrote: I'm wondering if it should also be possible to apply in/out contracts to function prototypes? Contracts should be checked by the caller, yes, and the idea regularly pops up here, I though there's an issue for this, but can't find it, may

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread Neia Neutuladh via Digitalmars-d
On Thursday, 17 May 2018 at 07:58:55 UTC, KingJoffrey wrote: Remember, the idea for discussion is about adding one single attribute 'sealed' to the class - the discussion is a lot less about 'how can we prevent having to add a this new attribute'. It is normal, whenever someone suggests changi

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Walter Bright via Digitalmars-d
On 5/16/2018 10:01 PM, Joakim wrote: Unicode was a standardization of all the existing code pages and then added these new transfer formats, but I have long thought that they'd have been better off going with a header-based format that kept most languages in a single-byte scheme, as they mostly

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Dmitry Olshansky via Digitalmars-d
On Thursday, 17 May 2018 at 17:16:03 UTC, Walter Bright wrote: On 5/16/2018 10:01 PM, Joakim wrote: Unicode was a standardization of all the existing code pages and then added these new transfer formats, but I have long thought that they'd have been better off going with a header-based format

Re: Benchmark Game

2018-05-17 Thread Huuskes via Digitalmars-d
On Thursday, 17 May 2018 at 09:26:34 UTC, rikki cattermole wrote: On 17/05/2018 8:52 PM, ixid wrote: On Thursday, 17 May 2018 at 08:51:39 UTC, rikki cattermole wrote: On 17/05/2018 8:50 PM, Chris wrote: For what it's worth, I came across this website: https://benchmarksgame-team.pages.debian.

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 15:37:01 UTC, Andrei Alexandrescu wrote: On 05/17/2018 09:14 AM, Patrick Schluter wrote: I'm in charge at the European Commission of the biggest translation memory in the world. Impressive! Is that the Europarl? No, Euramis. The central translation memory develope

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Joakim via Digitalmars-d
On Thursday, 17 May 2018 at 17:16:03 UTC, Walter Bright wrote: On 5/16/2018 10:01 PM, Joakim wrote: Unicode was a standardization of all the existing code pages and then added these new transfer formats, but I have long thought that they'd have been better off going with a header-based format

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread H. S. Teoh via Digitalmars-d
On Thu, May 17, 2018 at 10:16:03AM -0700, Walter Bright via Digitalmars-d wrote: > On 5/16/2018 10:01 PM, Joakim wrote: > > Unicode was a standardization of all the existing code pages and > > then added these new transfer formats, but I have long thought that > > they'd have been better off going

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 15:16:19 UTC, Joakim wrote: On Thursday, 17 May 2018 at 13:14:46 UTC, Patrick Schluter wrote: This is not practical, sorry. What happens when your message loses the header? Exactly, the rest of the message is garbled. Why would it lose the header? TCP guarantees del

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Shachar Shemesh via Digitalmars-d
On 17/05/18 18:47, kinke wrote: On Thursday, 17 May 2018 at 15:23:50 UTC, kinke wrote: See IR for https://run.dlang.io/is/1JIsk7. I should probably emphasize that the LLVM `byval` attribute is strange at first sight. Pseudo-IR `void foo(S* byval param); ... foo(S* byarg arg);` doesn't mean t

Re: Default Template Instantiation

2018-05-17 Thread Stefan Koch via Digitalmars-d
On Thursday, 17 May 2018 at 08:37:01 UTC, Heromyth wrote: On Monday, 19 September 2016 at 22:59:53 UTC, Jonathan Marler wrote: On Monday, 19 September 2016 at 22:17:34 UTC, Mathias Lang wrote: [...] Good example, thanks for the information. Maybe the compiler can do more works to make the c

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Shachar Shemesh via Digitalmars-d
On 17/05/18 19:08, Kagamin wrote: On Thursday, 17 May 2018 at 13:50:26 UTC, Shachar Shemesh wrote: There is no such use case. Please remember that at the time opPostMove is called, both new and old memory are still allocated. That's an interesting moment too. A struct that was supposed to be m

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Manu via Digitalmars-d
On 17 May 2018 at 01:12, Mike Parker via Digitalmars-d wrote: > This is the review thread for the first Community Review round for DIP 1014, > "Hooking D's struct move semantics". > > All review-related feedback on and discussion of the DIP should occur in > this thread. The review period will end

Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-17 Thread DarkHole via Digitalmars-d
This strange code - https://run.dlang.io/is/BKgv49 - fails with error "Error: constructor calls not allowed in loops or after labels", but there is no loops or labels.

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-17 Thread Steven Schveighoffer via Digitalmars-d
On 5/17/18 3:55 PM, DarkHole wrote: This strange code - https://run.dlang.io/is/BKgv49 - fails with error "Error: constructor calls not allowed in loops or after labels", but there is no loops or labels. Switch cases are labels. -Steve

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-17 Thread Steven Schveighoffer via Digitalmars-d
On 5/17/18 4:02 PM, Steven Schveighoffer wrote: On 5/17/18 3:55 PM, DarkHole wrote: This strange code - https://run.dlang.io/is/BKgv49 - fails with error "Error: constructor calls not allowed in loops or after labels", but there is no loops or labels. Switch cases are labels. That being sai

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Shachar Shemesh via Digitalmars-d
On 17/05/18 22:29, Manu wrote: This is great! I've wanted this on numerous occasions when interacting with C++ code. This will make interaction more complete. Within self-contained D code, I have avoided self-pointers by using self-offsets instead in the past (a bit hack-ey). But this nicely ti

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-17 Thread DarkHole via Digitalmars-d
On Thursday, 17 May 2018 at 20:02:19 UTC, Steven Schveighoffer wrote: On 5/17/18 3:55 PM, DarkHole wrote: This strange code - https://run.dlang.io/is/BKgv49 - fails with error "Error: constructor calls not allowed in loops or after labels", but there is no loops or labels. Switch cases are la

Re: Error about constructor calls in loops/labels, but there are no loops and labels?

2018-05-17 Thread Steven Schveighoffer via Digitalmars-d
On 5/17/18 4:25 PM, DarkHole wrote: On Thursday, 17 May 2018 at 20:02:19 UTC, Steven Schveighoffer wrote: On 5/17/18 3:55 PM, DarkHole wrote: This strange code - https://run.dlang.io/is/BKgv49 - fails with error "Error: constructor calls not allowed in loops or after labels", but there is no l

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Ethan via Digitalmars-d
On Thursday, 17 May 2018 at 17:26:04 UTC, Dmitry Olshansky wrote: TCP being reliable just plain doesn’t cut it. Corruption of single bit is very real. Quoting to highlight and agree. TCP is reliable because it resends dropped packets and delivers them in order. I don't write TCP packets to

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread H. S. Teoh via Digitalmars-d
On Thu, May 17, 2018 at 07:13:23PM +, Patrick Schluter via Digitalmars-d wrote: [...] > - the auto-synchronization and the statelessness are big deals. Yes. Imagine if we standardized on a header-based string encoding, and we wanted to implement a substring function over a string that contai

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Ethan via Digitalmars-d
And at the risk of getting this topic back on track: On Wednesday, 16 May 2018 at 20:34:26 UTC, Walter Bright wrote: Linkers already do that. Alignment is specified on all symbols emitted by the compiler, and the linker uses that info. Mea culpa. Upon further thinking, two things strike me: 1

Re: do not include sc.ini in zip files!

2018-05-17 Thread IntegratedDimensions via Digitalmars-d
On Thursday, 17 May 2018 at 08:53:06 UTC, Vladimir Panteleev wrote: On Thursday, 17 May 2018 at 07:38:50 UTC, IntegratedDimensions wrote: Any custom modification swill overwrite the original sc.ini file. The compiler should copy(rename) or create the file on demand when it is ran and does not e

Re: do not include sc.ini in zip files!

2018-05-17 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 18 May 2018 at 00:05:49 UTC, IntegratedDimensions wrote: This may be a suitable solution. While it has some overhead and pollutes the environment, it at least offers a working alternative unlike other (non)"solutions". It would be better if HOME wasn't so general since other applic

Re: Sealed classes - would you want them in D? (v2)

2018-05-17 Thread KingJoffrey via Digitalmars-d
On Thursday, 17 May 2018 at 14:14:28 UTC, Steven Schveighoffer wrote: D's main draw is not OOP. So if you are here for OOP goodies, then you are definitely better off looking elsewhere. I'll add that too my list of D forum quotes. That being said, D does have OOP, and many OOP programmers

Re: DIP 1014:Hooking D's struct move semantics--Community Review Round 1

2018-05-17 Thread Manu via Digitalmars-d
On 17 May 2018 at 13:25, Shachar Shemesh via Digitalmars-d wrote: > On 17/05/18 22:29, Manu wrote: >> >> >> This is great! >> I've wanted this on numerous occasions when interacting with C++ code. >> This will make interaction more complete. >> >> Within self-contained D code, I have avoided self-

Re: do not include sc.ini in zip files!

2018-05-17 Thread Jonathan M Davis via Digitalmars-d
On Thursday, May 17, 2018 08:51:34 Kagamin via Digitalmars-d wrote: > On Thursday, 17 May 2018 at 07:38:50 UTC, IntegratedDimensions > > wrote: > > This way one can unzip over a previous install without losing > > the original sc.ini file. > > Also that's not a correct way to update, you should unz

Expression based contract syntax

2018-05-17 Thread Arun Chandrasekaran via Digitalmars-d
Has this been implemented in DMD master? So I was looking at the changelog[1] and tried to build the example, but it erred. https://github.com/dlang/dmd/blob/master/changelog/expression-based_contract_syntax.dd

Re: Of possible interest: fast UTF8 validation

2018-05-17 Thread Patrick Schluter via Digitalmars-d
On Thursday, 17 May 2018 at 23:16:03 UTC, H. S. Teoh wrote: On Thu, May 17, 2018 at 07:13:23PM +, Patrick Schluter via Digitalmars-d wrote: [...] [...] Yes. Imagine if we standardized on a header-based string encoding, and we wanted to implement a substring function over a string that c

Help me please fix the bug

2018-05-17 Thread Majestio via Digitalmars-d
== log: == [majestio@freebsd ~/Projects/webapp]$ dub Performing "debug" build using /usr/local/bin/dmd for x86_64. taggedalgebraic 0.10.11: target for configuration "library" is

Re: Expression based contract syntax

2018-05-17 Thread Mike Franklin via Digitalmars-d
On Friday, 18 May 2018 at 05:28:10 UTC, Arun Chandrasekaran wrote: Has this been implemented in DMD master? So I was looking at the changelog[1] and tried to build the example, but it erred. https://github.com/dlang/dmd/blob/master/changelog/expression-based_contract_syntax.dd https://githu

Re: Help me please fix the bug

2018-05-17 Thread Mike Franklin via Digitalmars-d
On Friday, 18 May 2018 at 05:44:12 UTC, Majestio wrote: == log: == [majestio@freebsd ~/Projects/webapp]$ dub Performing "debug" build using /usr/local/bin/dmd for x86_64. tagge