[Win32] Remotely execute functions of a D program

2012-09-14 Thread alex
Hi everyone, To keeps things short: There shall be a extended debugging feature integrated into Mono-D / VisualD later on. As you may see on http://mono-d.alexanderbothe.com/wordpress/wp-content/uploads/2012/09/2ylpkqg.jpg , there already is debugging functionality possible for windows progr

Re: [Win32] Remotely execute functions of a D program

2012-09-14 Thread alex
On Friday, 14 September 2012 at 18:35:53 UTC, Sean Kelly wrote: On Sep 14, 2012, at 10:34 AM, alex wrote: 1) So to anyone who's got richer experiences in programming assembler and hacking/'debugging' programs than I - how would you do it? 2) And why can't I inject a

Re: [Win32] Remotely execute functions of a D program

2012-09-15 Thread alex
On Saturday, 15 September 2012 at 13:02:32 UTC, Denis Shelomovskij wrote: Again, Digital Mars C runtime library is the problem for everything in D language including DLL-s. Lol okay I think I've also seen it. I've tried to build a hybrid dll with mixed C and D code (just compiled with dm

Re: [Win32] Remotely execute functions of a D program

2012-09-15 Thread alex
On Saturday, 15 September 2012 at 13:34:02 UTC, alex wrote: On Saturday, 15 September 2012 at 13:02:32 UTC, Denis Shelomovskij wrote: Again, Digital Mars C runtime library is the problem for everything in D language including DLL-s. Lol okay I think I've also seen it. I'v

Re: [Win32] Remotely execute functions of a D program

2012-09-16 Thread alex
Ah sorry that I've forgotten to post a link to the final project - I was just too excited by the fact that it worked ;) https://github.com/aBothe/monodevelop-win32-debugger/tree/master/DInject (The most interesting part is located in Inject.cs)

Re: [Win32] Remotely execute functions of a D program

2012-09-16 Thread alex
On Sunday, 16 September 2012 at 16:13:18 UTC, Chang Long wrote: It is a problem cause by snn.lib , you can edit it with a hex editor find : 83 C4 04 83 7B 1C 00 74 09 FF 73 1C FF 15 00 00 00 00 53 e8 replace to : 83 C4 04 83 7B 1C 00 74 09 FF 73 1C FF 15 00 00 00 00 eb 07 That's the cause why

Re: [ ArgumentList ] vs. @( ArgumentList )

2012-11-06 Thread alex
@

Re: Moving towards D2 2.061 (and D1 1.076)

2012-12-09 Thread alex
On Monday, 10 December 2012 at 00:34:33 UTC, Walter Bright wrote: It's time to do a release; to that end we should be working on tidying up the regressions. This will be the last official D1 release. Totally amazing to read this. Thank all of you for your efforts! Furthermore, is there a d

Re: github release procedure

2013-01-03 Thread alex
Couldn't we just make an auto-publishing cron-job service or so which periodically (once a day or even just after a push/merge) compiles dmd and everything, packs it and makes this archive downloadable then? Of course this literally rolling release should be marked as unstable/nightly build.

A real Forum for D

2011-11-27 Thread alex
Hi folks, I just wondered why there still is this uncomfortable and obviously outdated newsgroup software in use. Perhaps it'd be more contemporary to have a 'real' browser-based forum to which everyone can register and post D-related questions&answers. So, my recommendation would be to establ

Re: A real Forum for D

2011-11-27 Thread alex
> post questions and search the archives EASILY That's it. To be more beginner-friendly. Not to be that unnecessarily complicated and opaque.

Mono-D@GSoC - Mentor needed

2012-03-19 Thread alex
Further project info @ http://mono-d.alexanderbothe.com For contact, you can speak to me in the #d and #d.mono-d channel on freenode - I'm called 'alex|D-Guy' there

Re: Mono-D@GSoC - Mentor needed

2012-03-20 Thread alex
Surely debugging support on platforms other than linux is much more important than any of these things you have listed. These things may be nice, but absolutely unnecessary. Integrated debugging is a must. Personally I don't want to waste time with scanning tons of API documentation just to f

Re: Mono-D@GSoC - Mentor needed

2012-03-20 Thread alex
I actually found myself using Mono-D for the nice completion and VisualD for debugging, which is a total pain and probably more effort than its worth :) Beta as hell ;D But nevertheless it'd be nice if there was a mentor for this project :)

Re: Mono-D@GSoC - Mentor needed

2012-03-20 Thread alex
On Tuesday, 20 March 2012 at 17:25:06 UTC, Adam Wilson wrote: On Mon, 19 Mar 2012 14:18:01 -0700, alex wrote: Hi everyone, It may sounds a bit annoying because I already was asking everywhere in the IRC channels but still had no success - Is there anyone who wants to be my GSoC mentor

Re: Mono-D@GSoC - Mentor needed

2012-03-20 Thread alex
On Tuesday, 20 March 2012 at 18:27:40 UTC, alex wrote: On Tuesday, 20 March 2012 at 17:25:06 UTC, Adam Wilson wrote: On Mon, 19 Mar 2012 14:18:01 -0700, alex wrote: Hi everyone, It may sounds a bit annoying because I already was asking everywhere in the IRC channels but still had no

Mono-D GSoC proposal, hopefully the last thread about it

2012-04-02 Thread alex
Hi everyone, A couple of days ago I handed in my application/proposal for GSoC. http://www.google-melange.com/gsoc/proposal/review/google/gsoc2012/adhoc__/1 Is there a reason there seems to be no response or have I missed something? Just wanted to make sure that I'm not doing so :) --Alex

Re: Mono-D GSoC proposal, hopefully the last thread about it

2012-04-06 Thread alex
On Wednesday, 4 April 2012 at 14:47:08 UTC, dsimcha wrote: Yeah, as a mentor, I will reassure both of you that no news definitely isn't bad news and may even be good news. If you don't have any feedback, it's because we either haven't gotten around to reading your proposal yet or it had all th

Re: Mono-D GSoC proposal, hopefully the last thread about it

2012-04-07 Thread alex
On Saturday, 7 April 2012 at 00:22:09 UTC, Adam Wilson wrote: Well, that was just the deadline for turning them in, you can still make changes. Now the mentor/student assignment process begins, i've listed myself on your proposal, I couldn't do that before today. :-) Ah ok, nice + thanks!

Re: dlangspec.pdf?

2013-01-05 Thread alex
On Saturday, 5 January 2013 at 14:08:00 UTC, Philippe Sigaud wrote: to get an equivalent of LaTeX \label => \ref. Regarding LaTex..why not LaTex? I mean, pdf and all other container derivatives aren't a problem then (anymore)

Re: We forgot to define a MIME-type for D!

2013-02-10 Thread alex
On Sunday, 10 February 2013 at 17:15:40 UTC, Marco Leise wrote: Oh noes... Now Mono-Develop used text/x-d and Pygments uses text/x-dsrc. Yep, I chose text/x-d mainly because the type for c#-files had been text/x-sharp, and since there probably is no other program that uses .d or .di files, I

Re: We forgot to define a MIME-type for D!

2013-02-10 Thread alex
text/x-csharp sry, there really should be a way to edit posts..

Re: We forgot to define a MIME-type for D!

2013-02-10 Thread alex
On Sunday, 10 February 2013 at 17:47:54 UTC, Jacob Carlborg wrote: On 2013-02-10 18:43, 1100110 wrote: vim occasionally thinks .d files are 'dtrace' files. I have no idea what that is though. It can be used for debugging, tracking system calls and similar. So, which mime is there (left) to

Re: The DUB package manager

2013-02-16 Thread alex
On Saturday, 16 February 2013 at 17:10:33 UTC, Sönke Ludwig wrote: - Full IDE support: Rather than focusing on performing the build by itself or tying a package to a particular build tool, DUB translates a general build receipt to any supported project format (it can also build b

Google Summer of Code 2013(?)

2013-03-24 Thread alex
Hi everyone, I've just read that there are only 5 days remaining for organization applications http://www.google-melange.com/gsoc/homepage/google/gsoc2013 Will Digitalmars do it a further year? Or are there too many resources spent on managing DConf? Personally, I'd like to participate in t

Re: Google Summer of Code 2013(?)

2013-03-24 Thread alex
I forgot to specify the topic I'd like to work on: To implement CTFE of D code under .Net - whereas the D code should become compiled into CIL (Common language runtime Intermediate Language, an assembler-like language), so one could execute the 'final' program directly in a .Net environment. I

Re: Google Summer of Code 2013(?)

2013-03-24 Thread alex
On Sunday, 24 March 2013 at 15:39:37 UTC, Andrei Alexandrescu wrote: On 3/24/13 10:48 AM, alex wrote: Hi everyone, I've just read that there are only 5 days remaining for organization applications http://www.google-melange.com/gsoc/homepage/google/gsoc2013 Will Digitalmars do it a fu

Re: Google Summer of Code 2013(?)

2013-03-24 Thread alex
On Sunday, 24 March 2013 at 20:22:56 UTC, Adam Wilson wrote: I just want to throw some caution into the wind here. Many people have tried emitting CIL from D source, and have had varying levels of success. Ranges in particular seems to a pain point as the CIL has no way to express that concept

Re: Google Summer of Code 2013(?)

2013-03-24 Thread alex
On Sunday, 24 March 2013 at 20:49:06 UTC, Timon Gehr wrote: On 03/24/2013 09:42 PM, alex wrote: On Sunday, 24 March 2013 at 20:22:56 UTC, Adam Wilson wrote: I just want to throw some caution into the wind here. Many people have tried emitting CIL from D source, and have had varying levels of

Raw binary(to work without OS) in D

2012-06-21 Thread Alex
is it possible to use D to write code to work without OS? like i do it with gcc.

std.net.curl - HTTP.Method.options - perform()

2012-07-24 Thread Alex
/AkA3Fvw1 (Basically a HTML error page) --Alex

Phobos Prerelease

2011-09-24 Thread alex
What is the new Phobos prerelease on d-programming-language.org? Has anyone else seen it? I can not discern much of a difference, probably mostly module specific. -- Alex Herrmann PC load letter

Book recommendation

2013-10-14 Thread alex
Hi, I am considering diving into D and would like to start with a book. I found the following two (if you have any other recommendation, please do recommend) http://www.amazon.com/The-Programming-Language-Andrei-Alexandrescu/dp/0321635361/ http://www.amazon.com/Learn-Tango-D-Kris-Bell

Re: Book recommendation

2013-10-14 Thread alex
On Monday, 14 October 2013 at 21:02:29 UTC, Adam Wilson wrote: Go with Andrei's book. It's more relevant to D today. Thanks for the prompt response Adam. How come its more relevant? If my scarce D knowledge does not mislead me Tango is the more recent library anyhow. So I'd assume the latte

Re: Book recommendation

2013-10-14 Thread alex
Thanks for the link John! On Monday, 14 October 2013 at 21:09:32 UTC, Adam Wilson wrote: That is actually incorrect. Tango was a replacement for the Phobos Standard Library in D1 to expand on the thin capabilities of the library at the time. In D2 (current D implementation) Phobos is now th

Re: Book recommendation

2013-10-14 Thread alex
Thanks everyone for your comments. I went ahead and ordered TDPL. But could anyone give me a concrete example, how Tango was better than Phobos and what improved now? I just would like to see what the main differences were and so on . just something short :)

Re: Book recommendation

2013-10-14 Thread alex
On Monday, 14 October 2013 at 21:47:39 UTC, Nick Sabalausky wrote: That's all historical information, though. History very often helps to understand the present :) Thanks for the insight, especially concerning "Tango with D"

OpenGL and D?

2008-12-10 Thread Alex
Hey, I have a question: Will there be an interface (may a framework) to OpenGL in the future?

Re: Owned members

2010-12-25 Thread Alex Khmara
On Sat, 25 Dec 2010 14:42:48 -, bearophile wrote: spir: I would enjoy to see a concrete, meaningful, example. Often enough my class/struct members are arrays, and often I'd like the compiler to help me be more sure their memory is not shared (with a slice, for example) with someth

Re: Owned members

2010-12-25 Thread Alex Khmara
On Sat, 25 Dec 2010 19:18:43 -, Robert Jacques wrote: This @owned is very similar to previous 'scope' proposals (and oddly dissimilar to previous owned proposals). To answer your question, under previous proposals the scope keyword would allow you to declare that a variable doesn't e

Re: Owned members

2010-12-25 Thread Alex Khmara
Well, think about pure. A pure function can call other pure functions, because those functions declare that they obey the rules of pure (i.e. no globals, etc). Scope variables can be passed to functions taking scoped parameters because those functions declare that they'll obey the rules of

Re: D and SCons

2012-09-07 Thread "Alex Burton"
On Monday, 3 September 2012 at 07:19:06 UTC, Russel Winder wrote: Hi, Is there anyone out there using SCons to build D code? If so it would be good to get some alpha and beta testers for the evolution of D support in SCons. I appreciate that other build frameworks may be the preferred ones

Re: References in D

2012-10-04 Thread "Alex Burton"
On Saturday, 15 September 2012 at 21:30:03 UTC, Walter Bright wrote: On 9/15/2012 5:39 AM, Henning Pohl wrote: The way D is dealing with classes reminds me of pointers because you can null them. C++'s references cannot (of course you can do some nasty casting). Doing null references in C++ is

Re: References in D

2012-10-04 Thread Alex Burton
On Thursday, 4 October 2012 at 17:55:45 UTC, Jonathan M Davis wrote: On Thursday, October 04, 2012 13:14:00 Alex Burton, @gmail.com wrote: On Saturday, 15 September 2012 at 21:30:03 UTC, Walter Bright wrote: > On 9/15/2012 5:39 AM, Henning Pohl wrote: >> The way D is dealing wit

Re: References in D

2012-10-04 Thread Alex Burton
On Wednesday, 3 October 2012 at 17:37:14 UTC, Franciszek Czekała wrote: On Wednesday, 3 October 2012 at 16:33:15 UTC, Simen Kjaeraas wrote: On 2012-10-03, 18:12, wrote: They make sure you never pass null to a function that doesn't expect null - I'd say that's a nice advantage. However w

Re: References in D

2012-10-04 Thread Alex Burton
On Saturday, 15 September 2012 at 17:51:39 UTC, Jonathan M Davis wrote: On Saturday, September 15, 2012 19:35:44 Alex Rønne Petersen wrote: Out of curiosity: Why? How often does your code actually accept null as a valid state of a class reference? I have no idea. I know that it's

Re: References in D

2012-10-04 Thread Alex Burton
On Friday, 5 October 2012 at 04:50:18 UTC, Jonathan M Davis wrote: On Friday, October 05, 2012 05:42:03 Alex Burton wrote: I realise what is currently the case I am making an argument as to why I this should be changed (at least for class references in D). This was talking about C

Re: SQLite3 Phobos branch

2011-04-24 Thread Alex Khmara
On Sun, 10 Apr 2011 01:19:43 +0300, Jonathan M Davis wrote: If it's just the bindings, then we probably don't need an actual review process on the newsgroup - though it'll obviously be reviewed on github before being merged in. However, I think that this sort of binding raises a potentia

Re: SQLite3 Phobos branch

2011-04-24 Thread Alex Khmara
github). Thank you for your hard work, Alex! I consider it a no-brainer to include just the bindings and SQLite C code in etc right now. SQLite is arguably the most widely used database, is easy to distribute and is public domain. It would be great if this infrastructure was "just

Re: SQLite3 Phobos branch

2011-04-24 Thread Alex Khmara
On Mon, 25 Apr 2011 01:49:16 +0300, Robert Clipsham wrote: On 24/04/2011 21:40, dsimcha wrote: However, it seems others in the community are interested in a more general SQL DB wrapper that can be used with a variety of backends. Now that no GSoC database project has been accepted, we need t

Re: SQLite3 Phobos branch

2011-04-24 Thread Alex Khmara
On Mon, 25 Apr 2011 02:33:44 +0300, Robert Clipsham wrote: On 25/04/2011 00:19, Alex Khmara wrote: Is it possible to see code somewhere? https://github.com/mrmonday/serenity/blob/master/serenity/SqlQuery.d - The code isn't great, it's adapted from D1, and wasn't comple

Re: SQLite3 Phobos branch

2011-04-25 Thread Alex Khmara
On Mon, 25 Apr 2011 12:16:19 +0300, Piotr Szturmaj wrote: Alex Khmara wrote: Second variant is a kind of ORM, and I think it will be too highlevel for many cases. But I understand that for web framework it's interesting direction. As for standard D library, I would like to have some

Re: SQLite3 Phobos branch

2011-04-25 Thread Alex Khmara
On Mon, 25 Apr 2011 15:26:44 +0300, Piotr Szturmaj wrote: In my Postgres implementation SELECT result is an Input Range, since Forward Range implies position saving and that's possible only with cursors. I think we could loosely follow .NET approach where each client has separate class

Re: Go has contempt for generics

2010-05-28 Thread Alex Makhotin
at seems inherent to the C++/Java/C# approach to "generics" is exactly the kind of heavyweight clumsy spell everything out for the compiler programming that Go strives so hard not to be. Russ I hope this comment helps. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Link time optimization in D

2010-06-01 Thread Alex Makhotin
libs. Am I correct? Does single-phase(compile-link in one command line) give optimization gain with the DMD? -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Link time optimization in D

2010-06-01 Thread Alex Makhotin
Walter Bright wrote: Does single-phase(compile-link in one command line) give optimization gain with the DMD? Yes. OK, currently I use two step build system, it looks reasonable to implement this scheme for release build. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Link time optimization in D

2010-06-01 Thread Alex Makhotin
which to link with. And I guess, what kind of issues may arise from mixing such static libs, and what effects this may take on, e.g. memory allocation/deallocation. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: One document about Go

2010-06-01 Thread Alex Makhotin
Walter Bright wrote: You inevitably forget to go back and append the ; to the previous line. Current DMD compiler version outputs on attempt to make empty statement: use '{ }' for an empty statement, not a ';' Is there a reason? -- Alex Makhotin, the foun

Re: One document about Go

2010-06-01 Thread Alex Makhotin
econd example, wrong). They want to force Java-like style which I dislike much. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: One document about Go

2010-06-01 Thread Alex Makhotin
). Why doesn't the news server place correct stamp on arrival? I'm confused a bit(the problem seems in Linux custom built kernel without some RTC option)... -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: One document about Go

2010-06-01 Thread Alex Makhotin
non-linear way which confuses the hell out of those "smart" editors. Why didn't you turn it off? Could you, please, give some examples on what should be done with the 'smart' indentation option to work for you? -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

DMD front end with commercial software

2010-06-01 Thread Alex Makhotin
uot; to endorse or promote derived products. 3. Include instructions (in the manual page or equivalent) on where to get the original unmodified version in the distribution. Am I permitted to do what I described? -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Link time optimization in D

2010-06-01 Thread Alex Makhotin
ged wrapper persists, which is stored in the hash table, so the hash table becomes bigger and bigger... -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: One document about Go

2010-06-02 Thread Alex Makhotin
Jesse Phillips wrote: Also it doesn't do alignment how I want so that is annoying but has little to do with indentation. Jesse, Could you please, explain, what exactly is annoying? -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Marketing of D - article topic ideas?

2010-06-04 Thread Alex Makhotin
mention, these need improvement in D: 1. Concurrency support and optimization for multicore/multiprocessor/GPGPU systems. 2. Better toolchain support. The first two inspired me to try the D. The second two should inspire the others. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Marketing of D - article topic ideas?

2010-06-06 Thread Alex Makhotin
d be glad to have it, like other people which supposed to work with the D. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: First experience with std.algorithm: I had to resort to writing a 'contains' function.

2010-06-08 Thread Alex Makhotin
alue. That is not the only one reason I wanted a std library with clear and documented interfaces. Generally I use std library to make writeln, thread wrapper around OS, and string conversions. I do not want to use std.algorithm. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: First experience with std.algorithm: I had to resort to writing a

2010-06-08 Thread Alex Makhotin
7;s not a limit of my brain, it's a problem in the library design. Agree. And by the way naming scheme also brings a lot of confusion, to say the least... -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: MingW compatibility

2010-06-11 Thread Alex Makhotin
Robert M. Münch wrote: Hi, can I use mingw compiled libraries with DMD for Windows? Hi, Robert. Yes, libraries produced with mingw32 GCC link well with binaries produced with DMD and I didn't notice runtime issues. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Go Programming talk [OT] - C is simple enough!???

2010-06-11 Thread Alex Makhotin
(!) on how to use your code, eventually I will not remember all the imagined picture and therefore dissatisfy with the code, it can even drive me not to use your code any more, or C++ code in general. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: MingW compatibility

2010-06-11 Thread Alex Makhotin
Robert M. Münch wrote: On 2010-06-11 13:18:34 +0200, Alex Makhotin said: Yes, libraries produced with mingw32 GCC link well with binaries produced with DMD and I didn't notice runtime issues. Perfect! I start to like D more and more... Of course I'm talking about dynamic li

Re: How do you use C based libs with D?

2010-06-11 Thread Alex Makhotin
ained DLL. Link obtained import library with the target. Place the DLL in the exact private folder where your executable resides to avoid DLL hell. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Go Programming talk [OT] - C is simple enough!???

2010-06-11 Thread Alex Makhotin
e the source of myriad of bugs, just because the language allows to use it, and assuming the worst case - everybody will misuse the feature as they always do. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Signed word lengths and indexes

2010-06-15 Thread Alex Makhotin
alley for a while. It's not practical. A link on the discussion or examples of unpractical explicit cast would be helpful to me to try to understand such decision. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: Signed word lengths and indexes

2010-06-15 Thread Alex Makhotin
nt of view of Linus on that matter. And his last comments on that look well motivated to me. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Re: enforce()?

2010-06-16 Thread Alex Makhotin
Steven Schveighoffer wrote: Think of enforce as "throw if" So why not concatenating the two and rename it to exactly 'throwif'? Self descriptive is better than cryptic 'enforce'. -- Alex Makhotin, the founder of BITPROX, http://bitprox.com

Encapsulate arguments

2014-01-01 Thread alex burton
struct Init { Factory * factory; Other arg1; Another arg2; }; void foo(const Init& init); void bar(const Init& init) { foo(init); other stuff; }; bar(Init(factory,other args)); In C++ I often wrap some arguments that are common to multiple functions in a struct. This idiom can red

Re: Encapsulate arguments

2014-01-01 Thread alex burton
On Wednesday, 1 January 2014 at 23:11:49 UTC, Adam D. Ruppe wrote: On Wednesday, 1 January 2014 at 23:00:33 UTC, alex burton wrote: In D this would be void bar(in Init init) which makes init const You should just take Init, without the in. "in" means that you won't modify AND

Re: function not callable using struct constructor

2014-01-02 Thread alex burton
Also: I couldn't find how to download old versions to make a better report on the version it was introduced in. Links to old versions in the changelog point to the current version download.

function not callable using struct constructor

2014-01-02 Thread alex burton
struct Foo { }; void bar(ref Foo f) { } void main() { bar(Foo()); //Error: function test.bar (ref Foo f) is not callable using argument types (Foo) } I get the above error with 2.064 not with 2.060. Is it a bug ? Is it a feature ? If so : Why can't I take a non const ref to a temp struct -

Re: function not callable using struct constructor

2014-01-03 Thread alex burton
On Friday, 3 January 2014 at 03:59:50 UTC, Jonathan M Davis wrote: On Friday, January 03, 2014 03:13:12 alex burton wrote: struct Foo { }; void bar(ref Foo f) { } void main() { bar(Foo()); //Error: function test.bar (ref Foo f) is not callable using argument types (Foo) } I get the above

Re: D - Unsafe and doomed

2014-01-06 Thread Alex Burton
On Sunday, 5 January 2014 at 00:05:46 UTC, Walter Bright wrote: On 1/4/2014 3:04 PM, deadalnix wrote: On Saturday, 4 January 2014 at 22:06:13 UTC, Walter Bright wrote: I don't really understand your point. Null is not that special. For example, you may want a constrained type: 1. a float gua

Re: D - Unsafe and doomed

2014-01-07 Thread alex burton
On Monday, 6 January 2014 at 23:13:14 UTC, Walter Bright wrote: On 1/6/2014 3:02 PM, Alex Burton wrote: All the others should result in an exception at some point. Exceptions allow stack unwinding, which allows people to write code that doesn't leave things in undefined states in the eve

Re: D - Unsafe and doomed

2014-01-07 Thread alex burton
On Tuesday, 7 January 2014 at 11:36:50 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 7 January 2014 at 11:29:18 UTC, alex burton wrote: Hardware exceptions allow for the same thing. I am not sure what you mean by the above. You can trap the segfault and access a OS-specific data structure

Re: Optlink is on github

2014-04-09 Thread Alex Ogheri
On Thursday, 7 March 2013 at 03:06:48 UTC, bearophile wrote: Walter Bright: Happy hacking! Extra karma points if done blindfolded, using a Braille tablet :-) Bye, bearophile As far as I know, Walter DOES IT blindfolded, using a Braille tablet and while he writes 3 other compilers at the

property syntax problems

2009-02-05 Thread Alex Burton
Hi, I just found a bug that comes out of the property syntax. The property syntax is great in that it allows a smooth transition from simple code dealing with public member variables to the use of interfaces without needing to update the client code. i.e. A.bob = 1 can stay as A.bob = 1 when bo

Re: property syntax problems

2009-02-05 Thread Alex Burton
Robert Jacques Wrote: > On Thu, 05 Feb 2009 06:55:46 -0500, Alex Burton wrote: > > > Hi, > > > > I just found a bug that comes out of the property syntax. > > > > The property syntax is great in that it allows a smooth transition from > > simple co

Re: property syntax problems

2009-02-05 Thread Alex Burton
Robert Jacques Wrote: > On Thu, 05 Feb 2009 14:27:27 -0500, Bill Baxter wrote: > > > On Fri, Feb 6, 2009 at 2:34 AM, Robert Jacques wrote: > >> On Thu, 05 Feb 2009 06:55:46 -0500, Alex Burton wrote: > >>> int main() > >>> { > >>> B

Re: (non)nullable types

2009-02-09 Thread Alex Burton
I vote yes. I was pretty sure the topic was refering to the ability to specify a pointer that could not be set to 0. I totally agree with this rule, and enforce it in all my C++ code with smart pointers. class X { }; X x; //in D or X * x; //in C++ Setting x to zero or any other value that i

Proposal : allocations made easier with non nullable types.

2009-02-09 Thread Alex Burton
X to a variable declared as X x is the same as mixing in a bicycle when a recipe asks for a cup of olive oil. There are much better, and less error prone ways to write code in a high level language than allowing null pointers. Alex

Re: Proposal : allocations made easier with non nullable types.

2009-02-09 Thread Alex Burton
Ary Borenszweig Wrote: > Alex Burton wrote: > > I think it makes no sense to have nullable pointers in a high level > > language like D. > > > > In D : > > > > X x = new X; > > This is a bit redundant, if we take away the ability to write X x; to me

Re: Proposal : allocations made easier with non nullable types.

2009-02-09 Thread Alex Burton
Daniel Keep Wrote: > > > Alex Burton wrote: > > I think it makes no sense to have nullable pointers in a high level > > language like D. > > Oh, and how do you intend to make linked lists? Or trees? Or any > non-trivial data structure? I am not saying than

Re: Proposal : allocations made easier with non nullable types.

2009-02-09 Thread Alex Burton
Daniel Keep Wrote: > > > Alex Burton wrote: > > I think it makes no sense to have nullable pointers in a high level > > language like D. > > Oh, and how do you intend to make linked lists? Or trees? Or any > non-trivial data structure? I am not saying than

Re: Proposal : allocations made easier with non nullable types.

2009-02-09 Thread Alex Burton
Daniel Keep Wrote: > > > Alex Burton wrote: > > Daniel Keep Wrote: > > > >> > >> Alex Burton wrote: > >>> I think it makes no sense to have nullable pointers in a high level > >>> language like D. > >> Oh, and how do y

Re: Null references (oh no, not again!)

2009-03-05 Thread Alex Burton
atistics would be a logical error. Implementing default non nullable would have the effect of reducing the amount of design intentional nullable used. It would also greatly increase the quality and maintainability of the code, as all references not specifically marked as nullable could be safely dereferenced. Alex

Re: Null references (oh no, not again!)

2009-03-05 Thread Alex Burton
t is a very programmer centric statement, you are rating the value of the problems in the cost to your own time once the bug has been received. The full cost to an enterprise of a catastrophic bug (which all 4 of these are ) in a released piece of software are almost certainly many orders of magnitude larger than the cost of programmer time to find and fix it. Alex

Re: Null references (oh no, not again!)

2009-03-05 Thread Alex Burton
f bar is to return a reference to an instance of Foo. Returning what is conceptually the result of a function in by ref parameters is really nasty way to code IMHO. Alex

Re: Null references (oh no, not again!)

2009-03-05 Thread Alex Burton
Alex Burton Wrote: > bearophile Wrote: > > > Andrei Alexandrescu: > > > I did some more research and found a study: > > > http://users.encs.concordia.ca/~chalin/papers/TR-2006-003.v3s-pub.pdf > > > ... > > > Turns out in 2/3 of cases, referenc

Re: Null references (oh no, not again!)

2009-03-05 Thread Alex Burton
Alex Burton Wrote: > > Oops I'm wrong the 2/3 is NON nullable. My brain seems to have trouble > reading all this 'non null' stuff. > Actually non nullable is a double negative. What we really want in the D language and the language of the discussions about

Patches

2010-04-09 Thread Alex Strickland
Hi I like reading the bugs list. I see lots of patches (for example from Rainer Schuetze) but I don't see all of them applied (in the latest release). How does that work? Regards Alex

  1   2   3   4   5   6   7   8   9   10   >