Marco Leise:
> You think in the wrong category. Imagine where this would matter, where
> you would invoke a program multiple times.
I agree, and I think 0.11 seconds (on a slow PC) is a bit too much. I think
there is something smelly that will need tuning/optimization.
Bye,
bearophile
Am 29.07.2011, 17:23 Uhr, schrieb Steven Schveighoffer
:
On Fri, 29 Jul 2011 10:50:52 -0400, bearophile
wrote:
Steven Schveighoffer:
For example, D needs to call all the module ctors and do the import
cycle
detection algorithm.
Even for an empty program?
Yes. I bet even an empty
"as for the linux side"
I though dmd was unable to generate shared libs on linux?
It would be cool to have a mixin "shared" that when compiled on windows
generates a windows dll and if compiler on linux generates a linux shared
lib :)
2011/8/18 Trass3r
> Am 18.08.2011, 21:42 Uhr, schrieb Kai Me
On Fri, 19 Aug 2011 02:18:39 +0200, Andrej Mitrovic wrote:
> import std.range;
> import std.stdio;
>
> void main()
> {
> auto r1 = iota(0.0, 4.0, 0.03); // ok auto r2 = iota(0.0, 3.0,
> 0.03); //
> core.exception.AssertError@std.range(4001): Assertion failure }
>
> I want a range in st
import std.range;
import std.stdio;
void main()
{
auto r1 = iota(0.0, 4.0, 0.03); // ok
auto r2 = iota(0.0, 3.0, 0.03); //
core.exception.AssertError@std.range(4001): Assertion failure
}
I want a range in steps of 0.03, beginning at 0.0 and ending at the
closest point to 3.0.
Line 4001
Am 18.08.2011, 21:42 Uhr, schrieb Kai Meyer :
2) check if there are any exported functions (via .def or export()), if
not, export them all
That's insane. Larger projects have tons of functions and may only need to
export a few.
The language includes the export keyword to export functions and
On 08/18/2011 01:32 PM, Trass3r wrote:
Am 18.08.2011, 21:17 Uhr, schrieb Adam D. Ruppe
:
We should make a mixin template DllMain that has a generic main.
We should also have a -shared switch that transparently includes all of
the boilerplate crap:
particularly the .def file, maybe even a defau
Am 18.08.2011, 21:17 Uhr, schrieb Adam D. Ruppe
:
We should make a mixin template DllMain that has a generic main.
We should also have a -shared switch that transparently includes all of
the boilerplate crap:
particularly the .def file, maybe even a default DllMain if none exists.
We should make a mixin template DllMain that has a generic main.
import std.dll;
void myDllProc() { }
mixin DllMain!myDllProc;
I did this with my cgi.d and like it alot - the templated main saves
a lot of boilerplate.
Example:
https://bitbucket.org/trass3r/matd/src/tip/examples/mmfile/
I looked at the dll documentation and I'm baffled by the time I get to
the first
line: __gshared HINSTANCE g_hInst; and then it starts talking about
dll_process_attach. I don't want to attach processes, I want to compute
an integer.
The Dllmain is needed so the D runtime is properly initiali
Hi, all. I'm trying to write some efficient code for a macro in vba using a
language
that I enjoy. I don't need any fancy operating system interaction, I just want
to
write
int foo(int arg){
return arg; //actual computation a bit more involved.
}
Compile it to dll and call it with vba.
I loo
== Auszug aus Robert Clipsham (rob...@octarineparrot.com)'s Artikel
> On 16/08/2011 20:17, nrgyzer wrote:
> > Hi everyone,
> >
> > I've the following:
> >
> > private static ubyte[][2][hash_t] classInstances;
> >
> > this() {
> >
> > classInstances[toHash()] = new ubyte[2]; // does not work
> >
13 matches
Mail list logo