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
> support for Unicode characters, and you would get back a black or
> white box like "[]"
On 2011-05-19 22:51, Andrej Mitrovic wrote:
> It was in the docs like that actually.
Well, then it's an error in the docs. Foo.init should have its member
variables initialized to what they were directly initialized to, but that
shouldn't affect the default initializers of the types of the membe
It was in the docs like that actually.
On 2011-05-19 20:19, Andrej Mitrovic wrote:
> From: http://d-programming-language.org/property.html
> .init Property:
> ".init produces a constant expression that is the default initializer. If
> applied to a type, it is the default initializer for that type. If applied
> to a variable or field, it
From: http://d-programming-language.org/property.html
.init Property:
".init produces a constant expression that is the default initializer. If
applied to a type, it is the default initializer for that type. If applied to a
variable or field, it is the default initializer for that variable or fie
Am 20.05.2011, 01:44 Uhr, schrieb Jimmy Cao :
I've even created a dll that is used as a keylogger hook thing for
Windows
with only D.
Just remembering that I also created a COM dll with D to intercept
DirectDraw calls in an old game.
I've even created a dll that is used as a keylogger hook thing for Windows
with only D.
dll helper is dead in latest release, you should use core.sys.windows.dll;
Bug report for the website has been reported already.
(I've already successfully created and used Matlab .mex/.dll plugins with
D)
Am 19.05.2011, 22:28 Uhr, schrieb Graham Fawcett :
Hi folks,
I've only used D on Linux so far, so I'm not clear on the current
shared-library story on Windows. Consider an existing C++ application
that
can be extended by writing plugins, which are usually written in C or
C++,
and compiled a
If you're on Windows, you need to set the proper codepage for the
console, you can do it programmatically like so:
version(Windows)
{
import std.c.windows.windows;
extern(Windows) BOOL SetConsoleOutputCP(UINT);
}
void main()
{
version(Windows) SetConsoleOutputCP(65001);
writeln("Hello
Which OS?
"Matthew Ong" wrote in message
news:ir3801$84b$1...@digitalmars.com...
> On 5/14/2011 3:17 AM, Nick Sabalausky wrote:
>> "Jason House" wrote in message
>
> > But yea, one-class-per-file is really a Java thing (and then a few other
> Not true entirely, the limit is one public class per file. Ther
Hi folks,
I've only used D on Linux so far, so I'm not clear on the current
shared-library story on Windows. Consider an existing C++ application that
can be extended by writing plugins, which are usually written in C or C++,
and compiled as DLLs. Very generally speaking, is DMD capable of produci
"Matthew Ong" wrote in message
news:ir3anp$dgj$1...@digitalmars.com...
> On 5/13/2011 4:01 AM, Nick Sabalausky wrote:
>>
>> Here's a basic "Hello world" CGI app in D:
>>
>> // hellocgi.d
>> import std.conv;
>> import std.stdio;
>>
>> void main()
> Hmm...Might be problem for it to be main... Secur
On Thu, 19 May 2011 15:39:12 -0400, Piotr Szturmaj
wrote:
I want to make a delegate of blocking I/O statement and pass it to a
function. Then it will be called immediately. This delegate never
escapes its creation scope, so I don't want heap closure allocation.
Will compiler create dynam
I want to make a delegate of blocking I/O statement and pass it to a
function. Then it will be called immediately. This delegate never
escapes its creation scope, so I don't want heap closure allocation.
Will compiler create dynamic closure (e.g. with allocation) or static
closure (with pointe
Jesse Phillips Wrote:
> Lloyd Dupont Wrote:
>
> > so I copied the Entice generated UI code in Visual D, and tried to compile.
> > I got 1 error:
> > Error1Error: module all is in file 'dfl\all.d' which cannot be read
> > C:\Dev\DTest\DTest1\myform.d7
> >
> > On
> > import dfl.all;
>
Lloyd Dupont Wrote:
> so I copied the Entice generated UI code in Visual D, and tried to compile.
> I got 1 error:
> Error1Error: module all is in file 'dfl\all.d' which cannot be read
> C:\Dev\DTest\DTest1\myform.d7
>
> On
> import dfl.all;
>
> For info I do have dfl.all in
> C:\D\
My cgi.d module does more comprehensive stuff:
http://arsdnet.net/dcode/cgi.d
Look for decodeVariables and encodeVariables. They are pretty
trivial function - split on the &, then decode each part.
On 2011-05-19 15:43, Matthew Ong wrote:
On 5/19/2011 2:32 AM, Jacob Carlborg wrote:
Template mixins are not exactly like copy and paste code.
* You can mixin the same template, at the same location, twice, taking
different parameters
* Mixed in methods doesn't overload on existing methods in
The uri module in phobos only encodes and decodes. Has someone written
(or are planning) a more comprehensive module that gives access to
various components?
On 19/05/2011 16:19, Matthew Ong wrote:
On 5/19/2011 11:22 PM, Matthew Ong wrote:
Hi,
import std.stdio;
alias immutable(wchar)[] String;
String str="Hello, world;
orΚαλημέρακόσμε;
orこんにちは世界";
writeln(str); // It prints garbage on console.
In Java and Go, that just works. I believe UTF-X is han
Lloyd Dupont Wrote:
> 1]. ok, I unzipped dmd.zip and dm.zip. what's this dm.zip for?
You shouldn't need dm.zip anymore. It used to be contain Digital Mars programs
for dmd, Optlink I believe. But they are inculded in the dmd.zip now.
> It complain that "all.d" is missing. Why does it
> need a
Matthew Ong Wrote:
> Hi,
>
> import std.stdio;
> alias immutable(wchar)[] String;
> String str="Hello, world; or Καλημέρα
> κόσμε; or こんにちは
> 世界";
> writeln(str); // It prints garbage on console.
>
> In Java and Go, that just works. I believe UTF-X is handles that.
>
> How to do that within D
Try using the hex unicode characters like this:
"\u0123"
I don't think decimal characters like you put work in D strings.
The &name; syntax sometimes works but only for named chars, and
you need to put a \ before them like this:
writeln("\“ hello \”");
Prints:
� hello �
You'll have to make sur
> How to 'add' functions to existing type/class/struct/interface...
You don't. It seems to be that this would break encapsulation anyway.
> I read from Adam that it is possible and is done within Phobos by D.
> Could some one provide some sample code to explain that.
Look in std.range for full e
On 5/19/2011 11:22 PM, Matthew Ong wrote:
Hi,
import std.stdio;
alias immutable(wchar)[] String;
String str="Hello, world; orΚαλημέρακόσμε;
orこんにちは世界";
writeln(str); // It prints garbage on console.
In Java and Go, that just works. I believe UTF-X is handles that.
How to do that within D?
Ye
AH... The web encoder corrupted the string. into NON human readable.
Hi,
import std.stdio;
alias immutable(wchar)[] String;
String str="Hello, world; or Καλημέρα
κόσμε; or こんにちは
世界";
writeln(str); // It prints garbage on console.
In Java and Go, that just works. I believe UTF-X is handles that.
How to do that within D?
Yes. I am still new to D. No. I am not ja
Hi All/Walter Bright,
The ability is able to be model and done by JRuby and also Google Go.
Conversions
...
// this function is now available for the object type Sequence. Done
outside of Sequence.d
func (s Sequence) MyFunction() string {
// My Function has access to all the public/intern
> Hmm...Might be problem for it to be main... Security concerned
> because of the publicity done my M$ and others also. When they
> pushed for ASP/JSP...
That's such backward nonsense I find it hard to believe anyone
would seriously believe it.
On 5/13/2011 4:01 AM, Nick Sabalausky wrote:
"Matthew Ong" wrote in message
news:iqgo17$2nqv$1...@digitalmars.com...
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 fo
On 5/19/2011 10:02 PM, Steven Schveighoffer wrote:
On Thu, 19 May 2011 09:43:14 -0400, Matthew Ong 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 not trying to as
On 5/19/2011 9:43 PM, Lloyd Dupont wrote:
1]. ok, I unzipped dmd.zip and dm.zip. what's this dm.zip for?
2]. I install Visual D, I had to point it to the DMD folder. And it did
compile my 1st D program fine... doubly wondering what's dm for?
3]. I try installed DFL. Actuall it unzipped in the w
On 5/19/2011 9:49 PM, Lloyd Dupont wrote:
so I copied the Entice generated UI code in Visual D, and tried to compile.
I got 1 error:
Error 1 Error: module all is in file 'dfl\all.d' which cannot be read
C:\Dev\DTest\DTest1\myform.d 7
On
import dfl.all;
For info I do have dfl.all in
C:\D\dmd2\wi
On Thu, 19 May 2011 09:43:14 -0400, Matthew Ong wrote:
On 5/19/2011 2:32 AM, Jacob Carlborg wrote:
Template mixins are not exactly like copy and paste code.
* You can mixin the same template, at the same location, twice, taking
different parameters
* Mixed in methods doesn't overload on exis
On 5/14/2011 3:17 AM, Nick Sabalausky wrote:
"Jason House" wrote in message
> But yea, one-class-per-file is really a Java thing (and then a few other
Not true entirely, the limit is one public class per file. There is no
actual limit for such:
// The file must be ClassA.java
public class C
so I copied the Entice generated UI code in Visual D, and tried to compile.
I got 1 error:
Error1Error: module all is in file 'dfl\all.d' which cannot be read
C:\Dev\DTest\DTest1\myform.d7
On
import dfl.all;
For info I do have dfl.all in
C:\D\dmd2\windows\import\dfl
1]. ok, I unzipped dmd.zip and dm.zip. what's this dm.zip for?
2]. I install Visual D, I had to point it to the DMD folder. And it did
compile my 1st D program fine... doubly wondering what's dm for?
3]. I try installed DFL. Actuall it unzipped in the worng forlder, so I
moved whateve in unpa
On 5/19/2011 2:32 AM, Jacob Carlborg wrote:
On 2011-05-18 20:05, Jonathan M Davis wrote:
On 5/18/2011 10:46 PM, Steven Schveighoffer wrote:
but you can do a string mixin to define the entire class. This is not
an easy thing to do, because you'd have to write the entire class as a
string of text
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 is
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?
O
43 matches
Mail list logo