= + acc.getAmount());
}
Kindly show some compilable and working code sample.
Thanks very much.
--
Matthew Ong
email: on...@yahoo.com
are in different classes?
Does it mean we have to do more alias at child class at the
bottom?MORE hard to solve issues.
If I am not mistaken, in C++/Java. They will choose the most bottom up
closes parameter type signature match.
--
Matthew Ong
email: on...@yahoo.com
On 5/27/2011 2:03 PM, Matthew Ong wrote:
Would not it be a better keyword such as:
class A{
// assuming there is a new keyword of noinherit
noinherit void foo(int x){} // all other method can be inherited in A
except for this class
}
Ignore the last message on new noinherit, just remember we
On 5/27/2011 2:32 PM, Jacob Carlborg wrote:
On 2011-05-27 07:55, Matthew Ong wrote:
In D the syntax for declaring a template and instantiate a template is
not the same. Have a look at the first example of
http://www.digitalmars.com/d/2.0/template.htm
If don't understand after reading
On 5/27/2011 2:48 PM, Matthew Ong wrote:
On 5/27/2011 2:32 PM, Jacob Carlborg wrote:
On 2011-05-27 07:55, Matthew Ong wrote:
Never mind, I found it.
http://www.dsource.org/projects/tutorials/wiki/InterfaceTemplateExample
--
Matthew Ong
email: on...@yahoo.com
On 5/27/2011 2:48 PM, Matthew Ong wrote:
On 5/27/2011 2:32 PM, Jacob Carlborg wrote:
Thanks very much.
--
Matthew Ong
email: on...@yahoo.com
','
src\Sample.d(146): expression expected, not 'EOF'
src\Sample.d(146): found 'EOF' when expecting ','
src\Sample.d(146): expression expected, not 'EOF'
Would some like to show me how this is done??
--
Matthew Ong
email: on...@yahoo.com
#public void addShutdownHook(Thread hook)
How do code or what library to use?
can someone please provide a simple working D example for try out.
Of cause, in Even in Java there is event if some cleaning lady were to
accidentally unplug the main socket of your server. :)
--
Matthew Ong
email
On 5/25/2011 5:45 PM, bearophile wrote:
Matthew Ong:
I am not able make use of these 3 special tokens to print something.
writefln(gshared: %s,__gshared);
writefln(thread: %s,__thread);
writefln(traits: %s,__traits);
They are keywords, so it's like writing:
writefln(traits: %s
, or
# The virtual machine is terminated in response to a user interrupt,
such as typing ^C, or a system-wide event, such as user logoff or system
shutdown.
--
Matthew Ong
email: on...@yahoo.com
will test that out.
--
Matthew Ong
email: on...@yahoo.com
commits change a static dtor to a shared static dtor and
wondered what was that all about..
Thanks a lot for the all the comments and instructions shown here.
--
Matthew Ong
email: on...@yahoo.com
On 5/23/2011 2:17 AM, Simen Kjaeraas wrote:
On Sat, 21 May 2011 11:40:22 +0200, Matthew Ong on...@yahoo.com wrote:
Using your code I have this error:
src\Sample.d(16): Error: undefined identifier btype, did you mean
template AType(string name,U,alias V)?
src\Sample.d(16): Error: mixin AType
On 5/21/2011 11:27 PM, Robert Clipsham wrote:
On 21/05/2011 09:58, Jonathan M Davis wrote:
On 2011-05-21 01:04, Matthew Ong wrote:
Hi,
D has major potential to replace C/C++ at the system API level.
What I can see D is doing now is trying to glue to the existing C API
instead of replacing
confusing the new Java to D developer.
There are also other run time intelligent build into JVM to avoid
malicious hacker attack on such thing using class proxy stub.
--
Matthew Ong
email: on...@yahoo.com
language.
Who is the kind soul that did this???
--
Matthew Ong
email: on...@yahoo.com
On 5/23/2011 3:58 PM, Timon Gehr wrote:
On 2011-05-23 00:09, Matthew Ong wrote:
Thanks everyone that gave some working model to a newbie from Java Space.
I found the working file layout model from dwt2
http://hg.dsource.org/projects/dwt2
There is a dwt2\base\src
Haha. That is exactly like
be define within the LIB or introduced as new functions
outside the library.
3) using some form of function pointer to call those static functions.
--
Matthew Ong
email: on...@yahoo.com
){
// some code
}version(Chinese_MainLand){
// some other code
}version(Chinese_HongKong){
// yet another code
}...etc
I have originally plan to send an attached screen shot but it is not
working for the newsgroup. Perhaps someone can show me how to do that here.
--
Matthew Ong
email
On 5/21/2011 2:46 PM, Matthew Ong wrote:
On 5/20/2011 2:55 PM, Russel Winder wrote:
On Thu, 2011-05-19 at 22:37 +0200, Andrej Mitrovic wrote:
[ . . . ]
You would also need a Unicode-aware font, maybe Lucida or something
similar. Typically fixed-point fonts used for programming have little
to be seriously look into.
--
Matthew Ong
email: on...@yahoo.com
see, as a starting show case project.
https://github.com/wmeissner/jffi
--
Matthew Ong
email: on...@yahoo.com
:
-odbin
-ofbin\TestTemplate.exe
-Isrc
src\Sample.d
src\Sample.d(20): Error: undefined identifier ClassB, did you mean class
ClassC?
src\Sample.d(20): Error: ClassB is used as a type
Thanks very much for helping out.
--
Matthew Ong
email: on...@yahoo.com
On 5/21/2011 5:12 PM, Simen Kjaeraas wrote:
On Sat, 21 May 2011 10:54:54 +0200, Matthew Ong on...@yahoo.com wrote:
mixin template AType(alias T, U, alias V){
class T : ClassC { // Class level Template
This gives you a class called T. You seem to want it to have the name
you pass as a string
On 5/19/2011 1:23 AM, Jesse Phillips wrote:
Matthew Ong Wrote:
Perhaps I am missing something here. How can class level definition be
part of the mixin?
Does mixin generate the same binary code as #define as inline code,which
meant that same binary is repeated everywhere that macro is used
On 5/19/2011 9:18 PM, Matthew Ong wrote:
On 5/19/2011 1:23 AM, Jesse Phillips wrote:
Matthew Ong Wrote:
Perhaps I am missing something here. How can class level definition be
part of the mixin?
Does mixin generate the same binary code as #define as inline code,which
meant that same binary
because linking is done during runtime by Class Loader. I wonder the
loader in D for DLL is as intelligent.
--
Matthew Ong
email: on...@yahoo.com
On 5/19/2011 10:02 PM, Steven Schveighoffer wrote:
On Thu, 19 May 2011 09:43:14 -0400, Matthew Ong on...@yahoo.com wrote:
According to Jonathan,
In the case of template mixins, you're essentially copying and pasting
code. Yes. Liked what you said, with optimization at compiled time.
I am
it is a well know
security concern
published and accepted as minimum by the industry for MNC.
--
Matthew Ong
email: on...@yahoo.com
reusing rather than code 'injection'.
Perhaps that is not the case within D as a limitation. Some code example
would be really useful.
--
Matthew Ong
email: on...@yahoo.com
believe UTF-X is handles that.
How to do that within D?
Yes. I am still new to D. No. I am not japanese but chinese.
Matthew Ong
AH... The web encoder corrupted the string. into NON human readable.
it is the same typed T??
--
Matthew Ong
email: on...@yahoo.com
with Subversion / CVS for
this team?
--
Matthew Ong
email: on...@yahoo.com
have any idea? because the results is in dll/exe I cannot really
tell. But someone that knows how the compiler works should be able to.
--
Matthew Ong
email: on...@yahoo.com
Hi,
What is the counterpart in D for replacing JSP/ASP/JRuby on Rail or some sort
of dynamic web base development?
How to compile a D code into dll to be used by apache or MS IIS?
How to also code digitally sign the DLL that was compiled in D?
Matthew Ong
Hi D Forum Admin,
I am using the webbase interface for the forum.
How to do forum text search instead of browsing over them one by one?
Matthew Ong
file(HashMap.d, LinkedList.d,
HashList.d) but
logically within the same module collection.(Directory)
How do I do that within D? what is the directory layout of the project?
Matthew Ong
Hi Adam,
Thanks again for the sharp pointed answer.
What is the counterpart in D for replacing JSP/ASP/JRuby on Rail or
some sort of dynamic web base development?
I use D for web work by using the standard CGI interface and sometimes
an embedded http server. It's the best thing I've ever used.
Hi Adam,
Ok. Just to be very clear here. Please help to validate.
Common interfaces for both HashMap, LinkedList and hashlist.
But they should be all be in different source file(HashMap.d, LinkedList.d,
HashList.d)..
To have import for:
module CornerCube.Collections
class HashMap{...}
I
40 matches
Mail list logo