[help]operator overloading with opEquals in a class

2010-11-03 Thread zhang
AClass class1 = new AClass(); AClass class2 = new AClass(); if(class1 == class2) writefln("=="); else writefln("!="); return 0; } -- Zhang s

Re: ScintillaD 0.0.1

2011-11-11 Thread zhang
> Hey zhang, > > I see you can now run SciteD, but it still crashes of course. Does > ScintillaD have more bugs to fix, or just SciteD, or even both? It's so sorry. I hasn't debugged it out why it crashes. And I'm busy with my company's works. It will be a lon

Re: Proposal for custom time string formatting in std.datetime

2011-12-24 Thread zhang
; to import all the modules in the standard package. > > It's of most benefit (IMO) for the Visual Studio IDE/GUI designer code. > The automated code generation goes into one source file, in a partial > class. The user defined code into another source file/partial class. It > makes life easier for both the developer and the GUI designer code itself. Maybe this is another thing. The "partial class" seems important for auto-code-generation or function-extention. -- Zhang

Re: Proposal for custom time string formatting in std.datetime

2011-12-26 Thread zhang
because you wouldn't be able to tell > the difference between importing a package and a module. But perhaps > that's the point. Otherwise I agree. The compiler should do this. A package is a directory, and a module just a file. When importing a package, the compiler will import all the modules in the package. The user doesn't care about this. -- Zhang

Re: Proposal for custom time string formatting in std.datetime

2011-12-26 Thread zhang
> > Here we have yet another example of some one who wants to use "import > foo.*;". Yeah, a module is just a file. So, the file name wildcards seem can be use for module names. -- Zhang

Ask for help about Internal error: e2ir.c 5007

2011-07-13 Thread zhang
t -c scintilla\Editor.d -ofobj\Debug\scintilla\Editor.obj Internal error: e2ir.c 5007 Of course, there are many bugs hidding in the Editor.d. However, I need more hints from the compiler to kill the bugs. Thanks for any help. -- Zhang t

Re: Ask for help about Internal error: e2ir.c 5007

2011-07-14 Thread zhang
> * SHAMELESS PLUG WARNING * > > Until a compiler developer can look at this, you can use DustMite to help > identify the cause of uninformative compiler error messages: > https://github.com/CyberShadow/DustMite It seems a interesting tool. Thanks for your information. -- Zhang l

Re: Ask for help about Internal error: e2ir.c 5007

2011-07-14 Thread zhang
> If you trust me, dropping the dmd.exe I emailed you in place of your > existing one should give you a line number and file. Thanks for your dmd.exe. You are so kind. I got the error using it. I have filed a bug at here http://d.puremagic.com/issues/show_bug.cgi?id=6317 -- Zhang

What should be reterned by std.array.replaceFirst

2011-07-29 Thread zhang
I tested std.array.replaceFirst with the code belown: string s1 = "abc bcf"; string s2 = s1.replaceFirst("bc", "ee"); writefln("%s\n%s", s1, s2); and got s2 is "aee". Should it be "aee bcf"? Is it a bug, or just it is that? Thanks. -- Zhang

Re: What should be reterned by std.array.replaceFirst

2011-08-02 Thread zhang
> On Sat, 30 Jul 2011 07:29:54 +0800, zhang wrote: > > > I tested std.array.replaceFirst with the code belown: > > > > string s1 = "abc bcf"; > > > > string s2 = s1.replaceFirst("bc", "ee"); writefln("%s\n%s", s

Re: DB ORM

2011-08-10 Thread zhang
. -- Zhang

Re: DB ORM

2011-08-11 Thread zhang
a lot of work for a single person to create something of > the quality of Hibernate. An intermediate step may be appropriate, where > all the automatic glue is still done by the programmer. Have some guys started the first step works? -- Zhang

Re: DB ORM

2011-08-12 Thread zhang
> You mean to indicate the attribute doesn't have a value? Yes, the field of a table can be null in DB. ------ Zhang

Re: DB ORM

2011-08-12 Thread zhang
> Graham Fawcett wrote. > > On Thu, 11 Aug 2011 20:10:15 +0800, zhang wrote: > > > >>> > I think D needs user defined attributes first. > >> > >> About attribute, here is an example: > >> > >> > >> > >>

How to new a class object in a struct

2011-09-01 Thread zhang
problems when doing porting from C++ to D. My solution is to use class instead of struct. Then I can create the aclass object in this() when I new an AStruct. Any suggestion? Thanks. -- Zhang

ScintillaD 0.0.1

2011-09-02 Thread zhang
to use the properties of D programming language. Project url: https://bitbucket.org/heromyth/scintillad Current status: Not runnable, but compilable and debuggable. -- Zhang

Re: ScintillaD 0.0.1

2011-09-03 Thread zhang
line: EnableAMenuItem(IDM_SAVE, CurrentBuffer().isDirty); in void CheckMenus() in class SciTEBase in scite.SciTEBase; -- Zhang

Re: ScintillaD 0.0.1

2011-09-03 Thread zhang
> "zhang" wrote in message > news:mailman.2638.1314964940.14074.digitalmar...@puremagic.com... > > ScintillaD is a D port of Scintilla which is implemented in C++. > > > > > > Project url: https://bitbucket.org/heromyth/scintillad > > Current statu

Re: ScintillaD 0.0.1

2011-09-03 Thread zhang
> Zhang: > > > Project url: https://bitbucket.org/heromyth/scintillad > > Current status: Not runnable, but compilable and debuggable. > > Have you found something in D/Phobos that has caused you troubles? After your > experience do you desire something in D/Phobo