On 11/06/2013 02:36 AM, Jacob Carlborg wrote:
On 2013-11-06 08:28, John J wrote:
Thanks Jacob,
I guess I have to compile and distribute a FreeTDS.dll, and it only
works for win32
FreeTDS works on Posix platforms. I wrote that code on Mac OS X. We use
FreeTDS in production, running servers on
On 2013-11-05 17:59, Gary Willoughby wrote:
IMHO private should mean private as enforced by other languages and use
another keyword for module level privacy. 'internal' springs to mind.
Which other languages? "private" in Ruby and Java is not the same.
--
/Jacob Carlborg
On 2013-11-05 17:40, bearophile wrote:
void foo() {
...
} unittest {
...
}
As soon as you want to do something more advanced than plain unit tests
that doesn't scale very well.
Even doing unit tests it's harder to take advantage of setting up before
and after callbacks that are s
On 2013-11-06 08:28, John J wrote:
Thanks Jacob,
I guess I have to compile and distribute a FreeTDS.dll, and it only
works for win32
FreeTDS works on Posix platforms. I wrote that code on Mac OS X. We use
FreeTDS in production, running servers on Linux, every day.
--
/Jacob Carlborg
On 10/31/2013 04:36 PM, Jacob Carlborg wrote:
On 2013-10-31 14:47, ilya-stromberg wrote:
John, It's interesting if you can connect to the MS SQL.
Just use FreeTDS, nothing special about it. See:
http://forum.dlang.org/thread/l403bf$139g$1...@digitalmars.com#post-l4089g:241723:241:40digitalma
On Sunday, November 03, 2013 14:28:13 Nicolas Sicard wrote:
> > So we basically have 4 ways..?
> > 1) popFront + front
> > 2) opSlice
> > 3) alias this
> > 4) opApply
>
> How about having a nested struct implementing a range interface +
> a method (@property) returning it + alias this on the prope
On Tuesday, November 05, 2013 22:34:49 Tyro[17] wrote:
> I’m sure the following table is missing a few items but am unclear
> what they are. For starters these <>, <>=, >>>, , !<>, !<>=
> belong on the table but I’m not sure where.
I'm not quite sure where they go, but I believe that all of them (
I’m sure the following table is missing a few items but am unclear
what they are. For starters these <>, <>=, >>>, , !<>, !<>=
belong on the table but I’m not sure where. I am also not sure if
these ..., @, # belong there at all. There might be other errors
or missing operators. Request assist to
On Tuesday, 5 November 2013 at 20:19:03 UTC, Namespace wrote:
And what is with the return type? It's a struct. You must
import it.
You don't have to import it. The layout of the struct isn't
going to change any time soon. Just copy/paste the definition
into your code. Or import it if you
On Wednesday, November 06, 2013 00:22:13 Namespace wrote:
> OPTLINK (R) for Win32 Release 8.00.13
> Copyright (C) Digital Mars 1989-2010 All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> Debug\Foo.obj Offset 0H Record Type 0064
> Error 138: Module or Dictionary corrupt
> Buil
OPTLINK (R) for Win32 Release 8.00.13
Copyright (C) Digital Mars 1989-2010 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
Debug\Foo.obj Offset 0H Record Type 0064
Error 138: Module or Dictionary corrupt
Building Debug\Foo.exe failed!
That's what I get when I compile with-
Also, please report the crash in Bugzilla if you haven't already.
d.puremagic.com/issues/
On 11/05/2013 11:00 AM, bearophile wrote:
How to solve such little troubles? A possible idea is to add to D
another attribute, a kind of "private private" that is enforced inside
the same module. It could be named "super private" because D has the
"super" keyword :-) But this idea doesn't solve a
On 11/05/2013 05:34 AM, Dmitry Olshansky wrote:
05-Nov-2013 02:20, Charles Hixson пишет:
On 11/03/2013 01:46 AM, Dmitry Olshansky wrote:
03-Nov-2013 02:37, Charles Hixson пишет:
I'm contemplating an associative array that will eventually grow to be
an estimated 64KB in size, assuming it's abou
On Tuesday, 5 November 2013 at 19:49:06 UTC, Sean Kelly wrote:
On Monday, 4 November 2013 at 22:25:14 UTC, Rainer Schuetze
wrote:
On 04.11.2013 11:23, Namespace wrote:
And how can I use it? import gc.proxy; doesn't work.
You need to add /src/druntime/src to the
import search paths.
Or si
On Monday, 4 November 2013 at 22:25:14 UTC, Rainer Schuetze wrote:
On 04.11.2013 11:23, Namespace wrote:
And how can I use it? import gc.proxy; doesn't work.
You need to add /src/druntime/src to the
import search paths.
Or simply declare the extern (C) function in your code.
Daniel Davidson:
Is there a way to do something like this and have opApply be
called for '+'?
If so, is it a bad idea?
import std.stdio;
double[string] opApply(string op)(const double[string][] inputs
...)
if(op == "+") {
double[string] result;
foreach( map ; inputs ) {
foreach( k
The code below causes a crash. What is the idiomatic way to merge
associative arrays? If there is a simple version that allows the
value at a key to be clobbered by the value of the right hand
operand when there is a collision, that is a start.
import std.stdio;
void main() {
double[string]
On 05.11.2013 17:40, bearophile wrote:
Meta:
I've seen Jacob Carlborg suggest that unittests should be put in a
separate module before, maybe this is an argument for that, even in
smaller projects.
Putting the unittests very close to their functions/methods is very
good, for various reasons.
On Tuesday, 5 November 2013 at 16:00:43 UTC, bearophile wrote:
1) I usually write more than one class or struct inside each D
module, unlike in Java. But sometimes when I move that class or
struct elsewhere (during refactoring, or in other situations) I
get access errors to private fields. Thos
On Tuesday, 5 November 2013 at 16:59:09 UTC, Gary Willoughby
wrote:
IMHO private should mean private as enforced by other languages
and use another keyword for module level privacy. 'internal'
springs to mind.
This will of course cause breakage! :/
Meta:
Would the package access specifier work for this, as long as
you keep it in the same package?
It's the opposite problem, I'd like to detect where I am using
private names by mistake, and the compiler doesn't complain
because it's in the same module.
I've seen Jacob Carlborg suggest
On Tuesday, 5 November 2013 at 16:00:43 UTC, bearophile wrote:
1) I usually write more than one class or struct inside each D
module, unlike in Java. But sometimes when I move that class or
struct elsewhere (during refactoring, or in other situations) I
get access errors to private fields. Thos
1) I usually write more than one class or struct inside each D
module, unlike in Java. But sometimes when I move that class or
struct elsewhere (during refactoring, or in other situations) I
get access errors to private fields. Those errors were already in
my code, but I didn't see them because
On 2013-11-04 20:35, Jeroen Bollen wrote:
Is there a way I can embed javascript into my D application? I basically
want to create a modular application which allows adding and removing
plugins by dragging and dropping them into a folder. I love the idea of
them being editable on the fly.
I have
On Tuesday, 5 November 2013 at 06:36:48 UTC, Jeroen Bollen wrote:
I'm probably going with spidermonkey then. Didn't really know
it had a C API... Thanks. :P
If your bindings end up being reusable, be sure to post them here
so next time someone asks this, I can link to that too!
05-Nov-2013 02:20, Charles Hixson пишет:
On 11/03/2013 01:46 AM, Dmitry Olshansky wrote:
03-Nov-2013 02:37, Charles Hixson пишет:
I'm contemplating an associative array that will eventually grow to be
an estimated 64KB in size, assuming it's about half full. It would then
be holding around 90,
27 matches
Mail list logo