On Tue, 2011-05-24 at 14:56 -0700, Walter Bright wrote:
On 5/23/2011 11:30 AM, Russel Winder wrote:
Yes and no. To those that get it, it is simple and straightforward.
Experience shows that very few people actually get it. Syntax is a
factor but not the only one. The very nature of the
On 5/25/2011 12:04 AM, Russel Winder wrote:
On Tue, 2011-05-24 at 14:56 -0700, Walter Bright wrote:
On 5/23/2011 11:30 AM, Russel Winder wrote:
Yes and no. To those that get it, it is simple and straightforward.
Experience shows that very few people actually get it. Syntax is a
factor but
Oh I must have missed that line. Sorry for the noise!
Jose Armando Garcia wrote:
Just wanted to let everyone know that I am working on having a review
wordy std.log. I am almost done with the implementation. I am
currently working on improving the documentation. Is there a link that
describes the review process. I would like to get std.log as close
Hi all,
These 2 tokens are very useful for debugging and also trouble shooting
during exceptions time and even implementing logging api similar to log4j:
I do understand that this are compile time information and they are static.
__FILE__ // prints something like D:\User\Project\...\MyMod.d
That's why Tortoise* are so evil, I shit bricks just by looking at them.
On 5/25/2011 6:57 PM, Kagamin wrote:
That's why Tortoise* are so evil, I shit bricks just by looking at them.
Huh??
--
Matthew Ong
email: on...@yahoo.com
On May 25, 11 16:29, Matthew Ong wrote:
Hi all,
These 2 tokens are very useful for debugging and also trouble shooting
during exceptions time and even implementing logging api similar to log4j:
I do understand that this are compile time information and they are static.
__FILE__ // prints
On May 25, 11 21:45, Daniel Gibson wrote:
5) __DEBUGLINE__ // prints __MODULE__ ~ __BLOCKNAME__ ~ __FUNCNAME__ ~
__LINE__
Just define that function if you need it.
string __DEBUGLINE__() {
return __MODULE__ ~ : ~ ...;
}
are you sure this works? this probably returns the
Am 25.05.2011 15:43, schrieb KennyTM~:
On May 25, 11 16:29, Matthew Ong wrote:
Hi all,
These 2 tokens are very useful for debugging and also trouble shooting
during exceptions time and even implementing logging api similar to
log4j:
I do understand that this are compile time information and
On 5/25/2011 9:45 PM, Daniel Gibson wrote:
.stringof[7 .. $]
Belonging to which object or variable?
4) __BLOCKNAME__ // perhaps another name, but prints
class/struct/interface/template... name. If is global, print global.
How about this one? The class which the fuction belows
On 5/25/11 9:23 AM, Matthew Ong wrote:
On 5/25/2011 9:45 PM, Daniel Gibson wrote:
.stringof[7 .. $]
Belonging to which object or variable?
4) __BLOCKNAME__ // perhaps another name, but prints
class/struct/interface/template... name. If is global, print global.
How about this one? The class
== Quote from Matthew Ong (on...@yahoo.com)'s article
These 2 tokens are very useful for debugging and also trouble
shooting during exceptions time and even implementing logging
api similar to log4j:
I do understand that this are compile time information and they
are static.
__FILE__ //
On May 25, 11 22:23, Matthew Ong wrote:
On 5/25/2011 9:45 PM, Daniel Gibson wrote:
.stringof[7 .. $]
Belonging to which object or variable?
Belongs to the module. '.xxx' is D's syntax for access a global object
(derived from C++'s '::xxx' syntax). Please read through the whole D
Robert Clipsham wrote:
On 24/05/2011 04:28, Jonathan M Davis wrote:
Thoughts on this?
I believe that the best and most likely to be implemented syntax which
has
been suggested (it was Andrei's idea IIRC) is to simply add optional
clauses
to attributes. So, instead of pure, you'd do
On Wed, 25 May 2011 10:59:46 -0400, Don nos...@nospam.com wrote:
Robert Clipsham wrote:
On 24/05/2011 04:28, Jonathan M Davis wrote:
Thoughts on this?
I believe that the best and most likely to be implemented syntax which
has
been suggested (it was Andrei's idea IIRC) is to simply add
On 5/25/2011 10:46 PM, KennyTM~ wrote:
I don't see how these 8 information _prevent_ DoS attack. And D already
has anti-buffer-overflow protection: range checking (in SafeD, at least).
Actually these allow the application developer to write some self
regulating routine threads to check for
Steven Schveighoffer wrote:
On Wed, 25 May 2011 10:59:46 -0400, Don nos...@nospam.com wrote:
Robert Clipsham wrote:
On 24/05/2011 04:28, Jonathan M Davis wrote:
Thoughts on this?
I believe that the best and most likely to be implemented syntax
which has
been suggested (it was Andrei's
On Wed, 25 May 2011 11:45:30 -0400, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On Wed, 25 May 2011 10:59:46 -0400, Don nos...@nospam.com wrote:
Robert Clipsham wrote:
On 24/05/2011 04:28, Jonathan M Davis wrote:
Thoughts on this?
I believe that the best and most likely to
On Wed, May 25, 2011 at 11:46 AM, KennyTM~ kenn...@gmail.com wrote:
On May 25, 11 22:23, Matthew Ong wrote:
On 5/25/2011 9:45 PM, Daniel Gibson wrote:
.stringof[7 .. $]
Belonging to which object or variable?
Belongs to the module. '.xxx' is D's syntax for access a global object
(derived
Am 25.05.2011 17:56, schrieb Matthew Ong:
On 5/25/2011 10:37 PM, pillsy wrote:
Use CTFE.
What is that? Some URL please.
http://www.digitalmars.com/d/2.0/function.html#interpretation
On 5/25/2011 10:37 PM, pillsy wrote:
== Quote from Matthew Ong (on...@yahoo.com)'s article
I do understand that this are compile time information and they
are static.
__FILE__ // prints something like D:\User\Project\...\MyMod.d
I do not like this full path format because it
On 5/25/2011 10:37 PM, pillsy wrote:
Use CTFE.
What is that? Some URL please.
--
Matthew Ong
email: on...@yahoo.com
On 2011-05-25 08:48, Steven Schveighoffer wrote:
On Wed, 25 May 2011 11:45:30 -0400, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On Wed, 25 May 2011 10:59:46 -0400, Don nos...@nospam.com wrote:
Robert Clipsham wrote:
On 24/05/2011 04:28, Jonathan M Davis wrote:
Thoughts on
I don't think auto ref is in TDPL actually.
On 5/25/11 10:48 AM, Steven Schveighoffer wrote:
On Wed, 25 May 2011 11:45:30 -0400, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On Wed, 25 May 2011 10:59:46 -0400, Don nos...@nospam.com wrote:
Robert Clipsham wrote:
On 24/05/2011 04:28, Jonathan M Davis wrote:
Thoughts on
On 5/25/11 10:50 AM, Jose Armando Garcia wrote:
On Wed, May 25, 2011 at 11:46 AM, KennyTM~kenn...@gmail.com wrote:
On May 25, 11 22:23, Matthew Ong wrote:
On 5/25/2011 9:45 PM, Daniel Gibson wrote:
.stringof[7 .. $]
Belonging to which object or variable?
Belongs to the module. '.xxx'
pillsy:
One addition that I would advocate for whic isn't on your list is
a token called __GENSYM__ (or perhaps __UNIQUE__ would be a better
name), which returns a string that's guaranteed to be unique and
usable as an identifier; this could provide additional safety when
metaprogramming
On Wed, 25 May 2011 12:19:03 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 5/25/11 10:48 AM, Steven Schveighoffer wrote:
On Wed, 25 May 2011 11:45:30 -0400, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On Wed, 25 May 2011 10:59:46 -0400, Don
On 5/25/11 12:15 PM, Steven Schveighoffer wrote:
On Wed, 25 May 2011 12:19:03 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 5/25/11 10:48 AM, Steven Schveighoffer wrote:
On Wed, 25 May 2011 11:45:30 -0400, Don nos...@nospam.com wrote:
Steven Schveighoffer wrote:
On
On Wed, 25 May 2011 13:21:48 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 5/25/11 12:15 PM, Steven Schveighoffer wrote:
On Wed, 25 May 2011 12:19:03 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
The example should work. auto ref means ref if possible,
Andrei Alexandrescu Wrote:
On 5/25/11 12:15 PM, Steven Schveighoffer wrote:
On Wed, 25 May 2011 12:19:03 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 5/25/11 10:48 AM, Steven Schveighoffer wrote:
On Wed, 25 May 2011 11:45:30 -0400, Don nos...@nospam.com wrote:
On May 24, 2011, at 10:37 PM, Jonathan M Davis wrote:
On 2011-05-24 22:15, Andrej Mitrovic wrote:
It seems to be largely replaced by std.datetime.stopwatch and friends,
right? Although I'm not sure IF those thread-specific timers are
available in datetime.
If it's not going to be
On 2011-05-25 11:27, Sean Kelly wrote:
On May 24, 2011, at 10:37 PM, Jonathan M Davis wrote:
On 2011-05-24 22:15, Andrej Mitrovic wrote:
It seems to be largely replaced by std.datetime.stopwatch and friends,
right? Although I'm not sure IF those thread-specific timers are
available in
On 5/24/2011 1:51 AM, Jonathan M Davis wrote:
On 2011-05-23 22:22, Mehrdad wrote:
On 5/23/2011 10:08 PM, Jonathan M Davis wrote:
On 2011-05-23 22:02, Mehrdad wrote:
One question: Why make the syntax complicated for just a little gain?
Wouldn't it kill a lot more birds with one stone if we
On 2011-05-25 14:09, Johann MacDonagh wrote:
On 5/24/2011 1:51 AM, Jonathan M Davis wrote:
On 2011-05-23 22:22, Mehrdad wrote:
On 5/23/2011 10:08 PM, Jonathan M Davis wrote:
On 2011-05-23 22:02, Mehrdad wrote:
One question: Why make the syntax complicated for just a little gain?
On Wed, May 25, 2011 at 1:20 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
On 5/25/11 10:50 AM, Jose Armando Garcia wrote:
On Wed, May 25, 2011 at 11:46 AM, KennyTM~kenn...@gmail.com wrote:
On May 25, 11 22:23, Matthew Ong wrote:
On 5/25/2011 9:45 PM, Daniel Gibson wrote:
Vladimir Panteleev wrote:
Inspired by Tigris Delta and the Want to help DMD bugfixing? Write a
simple utility thread from digitalmars.D.learn. I hope the DMD
development team will find this useful.
Advantages over Tigris delta:
* Easy to use (takes only two arguments, no need to fiddle with
Right now the review queue is empty, and I wonder whether there's some
new stuff ready in people's pipeline. At some point I recall there were
even complaints about the review cycle being too slow!
So, please chime in with components that are ready for the review process.
Thanks,
Andrei
That new version of std.algorithm is in a special section:
http://d-programming-language.org/phobos-prerelease/std_algorithm.html
On 05/24/2011 10:28 PM, Matthew Ong wrote:
However, when doing overload resolution, the functions in the base class
are not considered:
// ### Why Not? Since B is a subset of A, and within B itself methods
inherited from A can be called.
b.foo(1); // calls B.foo(long), since
Hi,
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);
rc\Sample.d(128): expression expected, not '__gshared'
Hi,
If I am writing a database library such as DSL, Data Service Layer,
there is a need for me to do a good clean up for the connections/results
sets/transactions that this library is currently handling.
How ever, if another library/package somewhere else calls for a
On 2011-05-25 01:29, Matthew Ong wrote:
Hi,
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);
Matthew Ong:
This may sound inefficient, but since the D compiler knows all of the
class hierarchy when generating code, all functions that are not
overridden can be optimized to be non-virtual.
This is pure theory, little more than advertisement. Also because D supports
separate
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, for);
Would some like to show me how this is
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, for);
Am 25.05.2011 12:42, schrieb Matthew Ong:
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
Am 25.05.2011 10:29, schrieb Matthew Ong:
Hi,
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);
rc\Sample.d(128):
I think __thread might be an alias for thread local. Maybe it was used
explicitly in D1 since D1 didn't have TLS by default?
http://www.digitalmars.com/d/2.0/class.html#StaticDestructor
-Steve
On 5/25/2011 11:13 PM, Steven Schveighoffer wrote:
http://www.digitalmars.com/d/2.0/class.html#StaticDestructor
-Steve
Static Destructor maybe executed when the class is being unloaded GC?
Because this is a class level. It is more like the application level
exit and such.
That is not
On 05/24/2011 11:42 PM, Jacob Carlborg wrote:
Yes, but all declarations in classes or modules are public by default.
Thanks for the correction.
All this time I've been thinking the opposite. My understanding seemed
correct, since most of the little programs that I've written have been
in a
On 05/25/2011 08:35 AM, Matthew Ong wrote:
On 5/25/2011 11:13 PM, Steven Schveighoffer wrote:
http://www.digitalmars.com/d/2.0/class.html#StaticDestructor
-Steve
Static Destructor maybe executed when the class is being unloaded GC?
Because this is a class level. It is more like the
On Wed, 25 May 2011 11:35:51 -0400, Matthew Ong on...@yahoo.com wrote:
On 5/25/2011 11:13 PM, Steven Schveighoffer wrote:
http://www.digitalmars.com/d/2.0/class.html#StaticDestructor
-Steve
Static Destructor maybe executed when the class is being unloaded GC?
Because this is a class level.
On Wed, 25 May 2011 11:50:16 -0400, Ali Çehreli acehr...@yahoo.com wrote:
On 05/25/2011 08:35 AM, Matthew Ong wrote:
On 5/25/2011 11:13 PM, Steven Schveighoffer wrote:
http://www.digitalmars.com/d/2.0/class.html#StaticDestructor
-Steve
Static Destructor maybe executed when the class is
On 5/25/2011 11:52 PM, Steven Schveighoffer wrote:
If you want a static dtor that runs on every thread shutdown, use a
normal static dtor. If you want one that runs on the entire application
shutdown, use a shared static dtor.
-Steve
Module Destructor: Cool feature that I can consider to use
On Wed, 25 May 2011 11:52:14 -0400, Steven Schveighoffer
schvei...@yahoo.com wrote:
On Wed, 25 May 2011 11:35:51 -0400, Matthew Ong on...@yahoo.com wrote:
On 5/25/2011 11:13 PM, Steven Schveighoffer wrote:
http://www.digitalmars.com/d/2.0/class.html#StaticDestructor
-Steve
Static
On 5/25/11, Steven Schveighoffer schvei...@yahoo.com wrote:
If you want a static dtor that runs on every thread shutdown, use a normal
static dtor. If you want one that runs on the entire application
shutdown, use a shared static dtor.
I saw some commits change a static dtor to a shared
On Tue, May 24, 2011 at 5:30 PM, Nick Sabalausky a@a.a wrote:
The DMD zips contain all the source code. You should be able to do this:
- Unzip dmd.2.053.zip (or whatever other version you want)
- Go into the 'src/dmd' directory
- Compile dmd (For me, it's just make -f linux.mak, but I'm on a
On 5/26/2011 12:23 AM, Andrej Mitrovic wrote:
On 5/25/11, Steven Schveighofferschvei...@yahoo.com wrote:
If you want a static dtor that runs on every thread shutdown, use a normal
static dtor. If you want one that runs on the entire application
shutdown, use a shared static dtor.
I saw some
http://d.puremagic.com/issues/show_bug.cgi?id=3145
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=2742
--- Comment #10 from Stewart Gordon s...@iname.com 2011-05-25 04:59:10 PDT ---
(In reply to comment #9)
According to this page http://codesnippets.joyent.com/posts/show/414
you can get and set the codepage via the
http://d.puremagic.com/issues/show_bug.cgi?id=2742
Vladimir Panteleev thecybersha...@gmail.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4295
--- Comment #7 from Trass3r mrmoc...@gmx.de 2011-05-25 06:29:08 PDT ---
It isn't fixed, std.windows.iunknown is still present.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail
http://d.puremagic.com/issues/show_bug.cgi?id=2335
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
Status|RESOLVED|REOPENED
http://d.puremagic.com/issues/show_bug.cgi?id=6056
Summary: Type lookup problem in string mixins
Product: D
Version: D2
Platform: Other
OS/Version: Mac OS X
Status: NEW
Severity: major
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=6056
kenn...@gmail.com changed:
What|Removed |Added
CC||kenn...@gmail.com
http://d.puremagic.com/issues/show_bug.cgi?id=6056
--- Comment #2 from kenn...@gmail.com 2011-05-25 11:39:51 PDT ---
Actually that 'template' is not needed.
mixin(alias const(typeof('c')*) A; alias const(typeof(0)*) B;);
static assert(is(B == const(int*)));
http://d.puremagic.com/issues/show_bug.cgi?id=5317
--- Comment #4 from Sean Kelly s...@invisibleduck.org 2011-05-25 16:29:53 PDT
---
When the assertion isn't propagated, what's likely happening is that the thread
instance is being discarded because the thread is complete. If the app
70 matches
Mail list logo