Daniel Keep Wrote:
>
>
> Tim M wrote:
> > Microsoft says to use Application.EnableVisualStyles
> > http://msdn.microsoft.com/en-us/library/system.windows.forms.application.enablevisualstyles.aspx
>
> Umm... you do realise that's for .NET, right?
Run it
Valery Wrote:
> Recently I spent a few hours to find a way to enable a new styles of Windows
> XP controls from the code (without manual created external manifest files,
> resource files, ...). The only solution I found in DFL library and it looks
> quite complicated.
Microsoft says to use App
Justin Johansson Wrote:
> Seeing this topic discussed here before but unable to ascertain a definitive
> answer on the issue, please forgive me for asking again.
>
> Is there any technical reason (e.g. position dependent code) why DMD 1.0 +
> Phobos cannot be used to build an Apache HTTPD serve
S. Wrote:
> Been awhile since I posted.
>
> I was wondering what other people thought about this addition to C++ by
> Apple. Heh.
>
> http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10
>
It is actually intended to be added to C which is kinda weird and against C's
road map.
Nick Sabalausky Wrote:
> "Walter Bright" wrote in message
> news:h7l32i$e...@digitalmars.com...
> > S. wrote:
> >> I was wondering what other people thought about this addition to C++ by
> >> Apple. Heh.
> >>
> >> http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10
> >
> >
> > I
Nick Sabalausky Wrote:
> "Nick Sabalausky" wrote in message
> news:h7fl1o$f8...@digitalmars.com...
> > I've been trying to make a grammar for the Haxe langauge, and I've been
> > having a hell of a time emulating it's expression-based if/if-else (as
> > opposed to statement-based as in D). I'm
Walter Bright Wrote:
> http://www.reddit.com/r/programming/comments/9fk6g/how_nested_functions_work_part_1/
Have had a quick look through. You could have explained that D supports
closures and how the implementation supports it. Also looked in to C# before
complaining about it not semantically
On Thu, 06 Aug 2009 04:13:07 -0400
HOSOKAWA Kenchi wrote:
> Hello,
>
>
> D's array slicing is basically "an array means to specify a subarray
> of it.
Static arrays are the same as in C but I prefer to think of dynamic
arrays as a handy GC'd block of memory that comes with a free view and
any
On Sun, 15 Mar 2009 06:27:42 +1300, BCS wrote:
there is no compact form for alias but this
T Foo(T)(T t) { return t; }
is internally identical the the more verbose form:
template Foo(T) { T Foo(T t){ return t; } }
Hi BCS. On this page: http://www.digitalmars.com/d/1.0/template.html
sc
On Sun, 15 Mar 2009 06:45:09 +1300, Frank Benoit
wrote:
Tim M schrieb:
On Sun, 15 Mar 2009 02:22:05 +1300, Frank Benoit
wrote:
In Java there is the runtime possibility to access data files from the
same jar by getClass().getResourceAsStream(). This is used to
externalize data. With the D
On Sun, 15 Mar 2009 02:22:05 +1300, Frank Benoit
wrote:
In Java there is the runtime possibility to access data files from the
same jar by getClass().getResourceAsStream(). This is used to
externalize data. With the D import("file"), we have this feature at
compiletime, which is fine.
But th
On Fri, 13 Mar 2009 22:49:00 +1300, Nick Sabalausky wrote:
"Kagamin" wrote in message
news:gpd8ka$1np...@digitalmars.com...
Andrei Alexandrescu Wrote:
I'm looking for a catchy phrase denoting this D idiom:
template Blah(Stuff)
{
alias ... Blah;
}
verbose templated declaration.
As f
On Mon, 09 Mar 2009 00:58:14 +1300, Michel Fortin
wrote:
If you introduce a way to limit templates to what generics can do in
Java and C#, you can have virtual template functions. Java and C#
generics can do only do a subset of what templates can do, but this
ensure there's only one co
On Sun, 08 Mar 2009 23:12:31 +1300, Daniel Keep
wrote:
That's how I think: it's easy to come up with simple cases where a
design works. The trick is to come up with a design that works even for
the complex cases.
What I am suggesting has strong importance without any changes to syntax,
Firstly option 2 was just crazy and I don't know why you said that. For
option 1 you identifying the limitations and are just trying to apply as
many problems as you can though the main barriers can easily be lowered.
As you already know templates are a compile time feature, so that
stateme
On Sun, 08 Mar 2009 20:12:20 +1300, Daniel Keep
wrote:
One issue with this is that template functions can't be virtual.
You can work around it, but it's really putting barriers up to easy use
of the new const system, which I think is a bad thing.
-- Daniel
I'd rather have virtual templ
If you're not actually responding to a post, please don't quote the
entire thing in your message.
The subject should have been more accurate then but yes preserving
constness is very usefull though I prefer the inferred template way:
module tconst;
import std.stdio;
T max(T)(T a, T b)
{
On Sun, 08 Mar 2009 19:18:52 +1300, Daniel Keep
wrote:
If you're not actually responding to a post, please don't quote the
entire thing in your message.
Tim M wrote:
What does this mean:
module tconst;
import std.stdio;
invariant(char)[] func()
{
invariant(char)[]
On Sun, 08 Mar 2009 17:56:09 +1300, Daniel Keep
wrote:
Jason House wrote:
The ugly const thread got me thinking about the old problem of
returning an
input while preserving const safety. I have an idea that seems
reasonable...
In a nutshell, I'm thinking that const(T) should be a base
What I was trying to say is that func needs to be called with an "A" but
calling it with a "B" works because a "B" is a kind of "A". The function
looses an information that it is a "B" returns it as an "A" which should
be cast back to a "B" explicitly. This is corrct behavior as not all "A"s
On Sun, 08 Mar 2009 06:59:04 +1300, Yigal Chripun
wrote:
I just read this article by Dennis Richie posted on the NG [1], and I
wanted to discuss a way to solve the const return issue.
here's some (general) code:
class A {}
class B : A {}
A func (A a) {
.. do stuff ..
return a;
}
v
On Sat, 07 Mar 2009 17:04:56 +1300, Andrei Alexandrescu
wrote:
Tim M wrote:
On Sat, 07 Mar 2009 06:47:40 +1300, Andrei Alexandrescu
wrote:
I tried typedef in two instances, to sadly conclude that it's not
useful as a true abstraction mechanism. The good news is that it's
On Sat, 07 Mar 2009 06:47:40 +1300, Andrei Alexandrescu
wrote:
I tried typedef in two instances, to sadly conclude that it's not useful
as a true abstraction mechanism. The good news is that it's very close
to being useful.
Ideally, typedef should provide a completely parallel type with
On Sun, 01 Mar 2009 21:25:10 +1300, Daniel Keep
wrote:
Tim M wrote:
Through out that page it shows examples of iterations where order is not
actually defined, the index has to modify by one but it gives the
compiler the ability to create a few threads and execute in parallel.
Thats what I
On Sun, 01 Mar 2009 16:58:15 +1300, Jarrett Billingsley
wrote:
On Sat, Feb 28, 2009 at 7:55 PM, Tim M wrote:
Who's idea was the vectorization? Seems very usefull but not sure if
really
like the syntax. Wouldn't it be simpler to have unordered attribute for
all
kinds loop
On Sun, 01 Mar 2009 13:27:43 +1300, <4tuu4k...@sneakemail.com> wrote:
Hi
This is the monthly status for the unofficial d wish list:
http://all-technology.com/eigenpolls/dwishlist/
Right now the wish list looks like this:
198 Stack tracing (#26)
192 Reflection API (#6)
131 vectorization (#
On Sun, 01 Mar 2009 05:30:28 +1300, Sean Kelly
wrote:
Jason House wrote:
Are there any good reasons to allow built in arrays to be resizable?
There's already plenty of empirical evidence that building arrays by
appending is incredibly slow.
There are also bugs in bugzilla where resizing
On Sat, 28 Feb 2009 22:53:25 +1300, JohnZ wrote:
In this case what would be the pros and cons if any of D compared with
C or asm?
C probably optimizes well based on its age. Asm will make some routines a
few microseconds faster. But D will ensure whole project not be delayed by
a few yea
On Sat, 28 Feb 2009 12:55:44 +1300, Jason House
wrote:
Are there any good reasons to allow built in arrays to be resizable?
There's already plenty of empirical evidence that building arrays by
appending is incredibly slow.
There are also bugs in bugzilla where resizing arrays after assig
On Fri, 27 Feb 2009 01:42:17 +1300, bearophile
wrote:
Rainer Deyke:
My opinion: D 1.0 is, on the whole, worse than C++.
There are many things in D1 better than C++, in particular you need less
time learn the language and less time to write programs that work
correctly.
Bye,
bearophil
On Wed, 25 Feb 2009 18:02:09 +1300, Jarrett Billingsley
wrote:
On Tue, Feb 24, 2009 at 11:39 PM, Tim M wrote:
On Wed, 25 Feb 2009 06:31:37 +1300, Justin wrote:
You are probably using alias and/or mixin incorrectly. It would be
easier
with full source but as a guess are you trying to
On Wed, 25 Feb 2009 06:31:37 +1300, Justin wrote:
I can probably figure out the bulk of the problem if someone can direct
me to the correct way of mixing in a bunch of functions and having them
overload each other properly. I'm using D 1.39 and the documentation
indicated that I needed to
On Tue, 17 Feb 2009 14:35:55 +1300, Tom S
wrote:
Tim M wrote:
Just checking you are aware of objconv which can be found here
http://www.agner.org/optimize/.
Have you successfully used it to convert all OMF obj files of some
application to another format and link them? It gives me a lot
On Tue, 17 Feb 2009 13:27:14 +1300, Jarrett Billingsley
wrote:
That's it -- I'm finished. I'm tired of constantly rearranging code
to appease OPTLINK and its outdated object format.
This is, for me, the number one blocker of most of my more complex
code on Windows. More than any DMD bug.
On Fri, 13 Feb 2009 17:38:46 +1300, Steve Schveighoffer
wrote:
On Thu, 12 Feb 2009 21:51:01 -0500, Justin wrote:
Is there a way to "find" a classinfo for such a class at runtime?
I can't see anything incorrect about what you are doing. Certainly the
source for druntime seems to indicate
On Wed, 11 Feb 2009 12:16:16 +1300, Walter Bright
wrote:
Nick Sabalausky wrote:
This strikes me as throwing away the baby with the bathwater. If your
code starts degenerating towards a versioning rat's nest, then the
solution is to take a moment and refactor it into a larger granularity,
It gets even better with constants and works in static asserts too:
module Vers;
template vers(char[] V)
{
mixin("version(" ~ V ~ ")
{
const bool vers = true;
}
else
{
const bool vers = false;
}");
}
const DigitalMars = "DigitalMars"
On Wed, 11 Feb 2009 00:28:21 +1300, bobef wrote:
I was thinking... what is the point of version() ? It is so inflexible.
There is no even version(!...). Why not "static if(version(DMD))" or
static if(is(version == DMD))?
Regards,
bobef
You could try something like this:
module Vers;
t
Is there a reason to have structs instead of classes/objects to do
whatever you use them for or is that besides the point?
On Tue, 03 Feb 2009 00:31:17 +1300, bearophile
wrote:
This comes after a small discussion I've had in the #D IRC channel.
I have seen that the LDC compiler is much more efficient if you use
SSE(2) extensions, while it's not much efficient if you don't use them
(GCC/GDC don't seem so much
On Wed, 21 Jan 2009 21:11:09 +1300, Tim M wrote:
http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage
server replies:
Software error:
File-Open-Fehler (/usr/home/wikise/wiki/slurp/125.238.96.111.rl): No
space left on device at /usr/local/etc/httpd/htdocs/wiki4d/wiki.cgi line
5375.
For
http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage
server replies:
Software error:
File-Open-Fehler (/usr/home/wikise/wiki/slurp/125.238.96.111.rl): No space
left on device at /usr/local/etc/httpd/htdocs/wiki4d/wiki.cgi line 5375.
For help, please send mail to the webmaster (webmas...@prowiki
On Tue, 13 Jan 2009 13:15:00 +1300, Walter Bright
wrote:
http://www.gamedev.net/community/forums/topic.asp?topic_id=520302
I had another look at that thread today and noticed a post that says "D
doesn't have static type checking".
http://www.gamedev.net/community/forums/topic.asp?topic_i
On Sat, 17 Jan 2009 12:51:46 +1300, Bill Baxter wrote:
I'm going crazy here with a very odd bug.
My DWT+OpenGL Win32 app is crashing *only* on Vista and *only* when I
use client arrays for rendering
(i.e. glEnableClientState(GL_VERTEX_ARRAY), glVertexPointer(...),
glArrayElement()).
The ex
On Sat, 17 Jan 2009 12:51:46 +1300, Bill Baxter wrote:
I'm going crazy here with a very odd bug.
My DWT+OpenGL Win32 app is crashing *only* on Vista and *only* when I
use client arrays for rendering
(i.e. glEnableClientState(GL_VERTEX_ARRAY), glVertexPointer(...),
glArrayElement()).
The ex
On Fri, 16 Jan 2009 21:18:46 +1300, bearophile
wrote:
Bill Baxter:
That's a good point. I never think of stuff like that because I use
dsss most of the time.
You want per-file flags? Ha! Dsss laughs at you. Unfortunately. :-(
I usually compile programs with bud, that applies the same t
On Fri, 16 Jan 2009 04:08:28 +1300, John Reimer
wrote:
...
Personally, I think we're at a point in D's life where we don't need to
call it standard. Maybe it would be better to have a newsgroup called
"GUI" instead. I'm not sure.
-JJR
That sounds more fair. Incase you
On Thu, 15 Jan 2009 13:25:39 +1300, Stewart Gordon
wrote:
http://www.prowiki.org/wiki4d/wiki.cgi?GuiLibraries
This page gives the standard D GUI library as being DWT, which is now a
"Tango based port of SWT v3.4 GUI Library + JFace and more".
Note "Tango based". How can it be the stand
On Wed, 14 Jan 2009 18:31:53 +1300, dsimcha wrote:
Just curious, why doesn't D, and why don't more statically typed
languages in
general, support overload by return type? I haven't exactly thought
through
all the pros and cons, but at first glance it seems like an incredibly
useful
thing
On Tue, 13 Jan 2009 15:20:03 +1300, Michael P.
wrote:
Walter Bright Wrote:
http://www.gamedev.net/community/forums/topic.asp?topic_id=520302
Yah, D exposure! :)
Its all negative exposure though. I hate it when I keep reading D is dead
sort of messages. On this news group it is so ali
DMD linker is often hangs for indefined amount of time. I'm already used
to killing the link.exe process and re-running linking step. It happens
to me in about 5-10% of times. Non-deterministic, non-reproducable.
To help prove a possible bug, I've also noticed this. Seems quite random
How do you rate 1.038 compile time?
Do the associative arrays work using the real key or a hash of it and if
it's a hash then what does it do to prevent hash collisions.
Does anyone know of true 128 bit cpus not just register size?
On Sun, 28 Dec 2008 17:38:12 +1300, Walter Bright
wrote:
You know, the unimplemented 128 bit integer types.
Does anyone have a use for these?
Is this Dusing libraries with same name or actuall common intermediate
langauge. D has it's own gc and the advantage of using that plus other
high level features without requiring additional runtime. This is what
makes it good but sometimes I use C#. D Libraries that mimic .net
libraries ma
Feature request: Could the d2.0 method 'classinfo::getMembers' be
implemented please. Or is this a bug?
module test;
import std.stdio;
class Thing
{
int abcd;
this()
{
}
}
int main(char[][] args)
{
Thing t = new Thing();
Member
But that's the main problem. Oh now this will never fail but you can never
be too sure. Also 640K should be enough for anyone. :)
On Wed, 17 Dec 2008 14:26:37 +1300, BCS wrote:
Reply to tim,
I haven't tried safeD and i'm guessing that is extra secure version of
D but what would be the poi
I haven't tried safeD and i'm guessing that is extra secure version of D
but what would be the point in removing those secuirty checks?
On Wed, 17 Dec 2008 08:34:17 +1300, bearophile
wrote:
This article shows a way to remove lot of array bounds checks, it's not
the first of this kind, bu
But extra features isn't necessarily a good thing. (Multiple Inheritance
for example). Can you prove that a new and improved type inference will
not be counter productive or any other disadvantages.
On Fri, 12 Dec 2008 01:06:34 +1300, bearophile <[EMAIL PROTECTED]>
wrote:
Robert Fraser
TED]>
wrote:
Tim M:
How would that improve on auto?
It's like asking how a domestic Flying Disk UFO can improve your bicycle
travels to the nearby milk shop :-)
The answer is: it can do that and much more.
Bye,
bearophile
How would that improve on auto?
On Wed, 10 Dec 2008 20:17:24 +1300, bearophile <[EMAIL PROTECTED]>
wrote:
Do you know if someone has created a (small) C++/D - like language
designed to work with a Hindley-Milner type inference algorithm (using
it for something useful)?
Days ago I was thin
On Sun, 16 Nov 2008 12:06:33 +1300, Brad Roberts <[EMAIL PROTECTED]>
wrote:
Walter Bright wrote:
Tim M wrote:
I think you're thinking of Java. Those guys are shit scared of public
properties. Get & Set for everything.
I never really understood the fear of that, either.
On Sun, 16 Nov 2008 05:22:24 +1300, dsimcha <[EMAIL PROTECTED]> wrote:
== Quote from Tony ([EMAIL PROTECTED])'s article
Is D today's PASCAL?
Tony
No. D is not a bondage-and-discipline language.
I think you're thinking of Java. Those guys are shit scared of public
properties. Get & Set f
A few years too late to by why isn't all classes objects, an instance of a
special virtual class called Class.
On Sat, 15 Nov 2008 08:55:29 +1300, Jarrett Billingsley
<[EMAIL PROTECTED]> wrote:
On Fri, Nov 14, 2008 at 2:35 PM, Sean Kelly <[EMAIL PROTECTED]>
wrote:
Tomas Lindquist Olsen w
http://www.digitalmars.com/d/2.0/operator-overloading.html#Unary
"The member function e.opCast() is called, and the return value of
opCast() is implicitly converted to type. Since functions cannot be
overloaded based on return value, there can be only one opCast per struct
or class."
I've
65 matches
Mail list logo