git dmd broken for posix?

2012-03-28 Thread Trass3r
The autotester has been showing a broken dmd testsuite for a while: http://d.puremagic.com/test-results/ Any bugzilla entry/pull request I may have missed?

Re: DMD Deadlocks

2012-03-19 Thread Trass3r
I somehow hit a bug where dmd deadlocks within Mem::Free if I use -inline. With previous bugs I was able to reduce my code using DustMite but with this one it is hard because dmd gives no output and just freezes. Any ideas how I could reduce my code? You could play with DustMite + timeout.

Re: DustMite updated

2012-03-04 Thread Trass3r
I can't believe I'm saying this, but I can't wait for my next ICE to try it out. :p Me too :D

Re: DustMite updated

2012-03-04 Thread Trass3r
Here's one for DMD 2.057. Knock yourself out ;) (As I mentioned in my other post, I can't build DustMite right now, or I'd do it myself. But if you want one...) -- chad@Hugin ~/dprojects/database $ dmd ice.d entity.(fld) Internal error: e2ir.c 683

Re: DustMite updated

2012-03-04 Thread Trass3r
If it's because my compiler is a version behind, then don't worry about it too much. Yep it uses the new => syntax.

Re: DustMite updated

2012-03-04 Thread Trass3r
Kudos!

Re: Ring 0 in D

2012-02-26 Thread Trass3r
Yep there also is a kernel in D: http://wiki.xomb.org

John Carmack applauds D's pure attribute

2012-02-25 Thread Trass3r
http://twitter.com/#!/ID_AA_Carmack/status/173111220092682240

Re: DustMite updated

2012-02-23 Thread Trass3r
Unfortunately plenty of 64Bit errors again :/

Re: DustMite updated

2012-02-23 Thread Trass3r
I played with some algorithms today and got about a 7x improvement in reduction time for my test case. The data is now arranged into a binary tree, and the progress indicator was changed to reflect that. Let me know if I broke anything in the process. Hooray, DustMite ftw!

Re: Questions about windows support

2012-02-20 Thread Trass3r
1) Is there a chance that dmd will support 64 bit on windows any time soon? No. gdc will remain the only option for quite a while. But that's better than dealing with optlink anyway. 3) Am I mistaken or are most of the people here using dmd under linux? Yeah, definitely more of a pleasur

Re: const ref and rvalues

2012-02-16 Thread Trass3r
Because then you _have_ to have a variable to call the function - except for the bizarre situation that struct literals have where they're considered lvalues (very bad idea IMHO). I think that from the perspective of most programmers, the fact that const ref doesn't take rvalues is a major n

Re: const ref and rvalues

2012-02-16 Thread Trass3r
I _think_ that the issue was that Walter had implemented it as a template thing, and it was supposed to work in general, but I'm not sure. How could it ever work without being a template?

Re: const ref and rvalues

2012-02-16 Thread Trass3r
It's supported in C++, isn't it supported by D? Andrei once said it was already a bad idea in C++.

Re: const ref and rvalues

2012-02-15 Thread Trass3r
why is allowing temporaries bind to ref const params bad again? bernardh commented that they might not have an address, e.g. cause of being in a register.

const ref and rvalues

2012-02-15 Thread Trass3r
I posted this question several times already and no answer yet, why is allowing temporaries bind to ref const params bad again?

Re: GDC bug: link error with cross-module templated AA member function call

2012-02-15 Thread Trass3r
report @ the bitbucket project site.

Re: -m64 doesn't work?

2012-02-12 Thread Trass3r
|-bin (64-bit version of dmd, impcnvgen, idgen, optabgen, plus dmd.conf) ^^ You don't need impcnvgen, idgen and optabgen.

Re: dmd Lexer and Parser in D

2012-02-04 Thread Trass3r
Unfortunately the conclusion was that it would be to difficult an undertaking to be realistic, since DMD is designed to be run-and-done (also something about "Walter code" :-)). But maybe a rewrite/port of DMD, especially one written in D, might be able to be reworked with this goal in mind

Re: is there something like an compilefarm for the dmd windows/linx and mac-version?

2012-02-04 Thread Trass3r
it would be nice to have something like current github builds was there an attempt to implement such a service? Well there's the autotester: http://d.puremagic.com/test-results/ So they are indeed built but not packaged/downloadable.

Re: dmd Lexer and Parser in D

2012-02-04 Thread Trass3r
Maybe there's some IDE that can make use of this. "Unfortunately" VisualD already has its own ;)

Re: libphobos.so libdruntime.so

2012-02-03 Thread Trass3r
But things like shared libraries that will become necessary once it becomes mainstream. Lack of shared library support is one of the barriers to it becoming mainstream (among many other things). Support for that is almost ready even in dmd. You were talking about making phobos shared and that's

Re: libphobos.so libdruntime.so

2012-02-03 Thread Trass3r
The same has to happen with druntime and Phobos2 or otherwise our programs will break with every new release that deprecates or changes non-template functions. That would probably be *every* release at the moment, so it could look like this: /usr/lib64/libphobos2.so (link to /usr/lib64/l

Re: phobos unittests not passing with dmd built by clang

2012-01-31 Thread Trass3r
The autotester hasn't revealed this cause it still uses the old g++4.2 on OSX. Apple switched to Clang just recently. "gcc" on OS X 10.7, which I am using, defaults to using clang. So I am using clang on a regular basis, and have not seen issues. It's a really small corner case. Here's a f

Re: phobos unittests not passing with dmd built by clang

2012-01-31 Thread Trass3r
Found out I forgot something in the makefile (such hardcoding really sucks!): strtold.o: $C/strtold.c - gcc -m$(MODEL) -c $< + clang -m$(MODEL) -c $< But it still fails.

Re: state of the pull autotester

2012-01-31 Thread Trass3r
btw, another improvement would be precise time information, i.e. incl. the time zone. Also they should be consistent. It seems to me like http://d.puremagic.com/test-results/pulls.ghtml uses a different time than a single result like http://d.puremagic.com/test-results/pull.ghtml?runid=4722

Re: phobos unittests not passing with dmd built by clang

2012-01-31 Thread Trass3r
Can anyone confirm this? If yes, bug in clang, dmd or phobos? Note that the dmd testsuite passes for me.

phobos unittests not passing with dmd built by clang

2012-01-31 Thread Trass3r
I changed posix.mak as follows to compile with svn clang: -HOST_CC=g++ +HOST_CC=clang++ -WARNINGS=-Wno-deprecated -Wstrict-aliasing +WARNINGS=-Wno-deprecated -Wstrict-aliasing -Wno-logical-op-parentheses -GFLAGS = $(WARNINGS) -D__near= -D__pascal= -fno-exceptions -O2 +GFLAGS = -x c++ $(WARNINGS

Re: state of the pull autotester

2012-01-29 Thread Trass3r
My current thinking is that I'll first write a greasemonkey script that integrates the tester results into github so that there's visibility of the current state along-side the pull itself. Sounds promising. It's a security measure to avoid building just any random bit of code that happens

state of the pull autotester

2012-01-29 Thread Trass3r
http://d.puremagic.com/test-results/pulls.ghtml I've seen several suggestions in an older thread to improve the tester like posting notifications about failing tests to the corresponding pull request. Any plans for that? Also why aren't all pull requests tested there?

Re: weak linking

2012-01-29 Thread Trass3r
On Saturday, 28 January 2012 at 00:59:17 UTC, Trass3r wrote: I guess weak linking could be easily achieved with gdc's pragma setattribute weak. But what about dmd? (Or ldc?) And is it also possible on Windows? anyone?

Re: indent style for D

2012-01-29 Thread Trass3r
Am I mistaken? If no, am I missing some major spaces advantages? If no, lets use tabs. Perhaps, there is no tool that will convert (convert right, not somehow, see article) tabs<->spaces in D code. There wouldn't be any problem if people were able to use tabs for indentation and spaces for al

Re: indent style for D

2012-01-29 Thread Trass3r
Personally, I've never understood how anyone can stand anything other than Allman. Totally agree.

Re: Should export be stripped by the .di generator?

2012-01-29 Thread Trass3r
export on a function declaration means dllimport for exactly that purpose (.di files). It's not mentioned at the attributes doc site but I'm sure I read it somewhere else.

Re: indent style for D

2012-01-29 Thread Trass3r
http://www.d-programming-language.org/dstyle.html in regard to indent-style, can someone shed some light what is recommended practice for it within D community? Everyone thinks his way is the best.

Re: indent style for D

2012-01-29 Thread Trass3r
Am 29.01.2012, 12:34 Uhr, schrieb Gour : On Sun, 29 Jan 2012 12:21:35 +0100 Alex Rønne Petersen wrote: Phobos generally uses 4-space indentation. That is mentioned in the style-guide, but I'm curious about bracing, iow, GNUstyle, K&R, ANSI...? Some people seem to use that godawful BSD KNF

Re: enum scope

2012-01-28 Thread Trass3r
No it's not. Your sample won't compile with -property. That's why I've wrapped it into a template, to avoid having to use parens. Never used -property. I don't mind adding parentheses either. Fair enough. But if we're going to be anal about it you should add a constraint `if (is(EnumType == e

Re: enum scope

2012-01-28 Thread Trass3r
The following is a better solution, and should probably be in the standard library. .. (could be mixin(exposeEnumMembers!UITableViewRowAnimation); ) That's what I already do. The whole point of the thread is to get rid of that crap after each enum.

Re: enum scope

2012-01-28 Thread Trass3r
import std.conv; import std.traits; string exposeEnumMembersImpl(T)() { string result; foreach (member; EnumMembers!UITableViewRowAnimation) result ~= "alias " ~ to!string(T.stringof) ~ "." ~ to!string(member) ~ " " ~ to!string(member) ~ ";\n"; return result; } template expos

Re: CTFE attribute

2012-01-28 Thread Trass3r
When I build my code, I notice that the CTFE functions, which are never referenced in any runtime code, are still present in the object file. For now you can get rid of it with -L--gc-sections (or LTO). gdc also needs -ffunction-sections -fdata-sections.

weak linking

2012-01-27 Thread Trass3r
I guess weak linking could be easily achieved with gdc's pragma setattribute weak. But what about dmd? (Or ldc?) And is it also possible on Windows?

Re: automated C++ binding generation.. Booost D, NO , Not us. SIMD is more important.

2012-01-27 Thread Trass3r
"What's the alternative to Qt in D?" should not be "Qt bindings" but maybe a library which imitates the implementation and/or interface of Qt UI widgets in native D. http://www.ohloh.net/p/qt/estimated_cost some scary numbers http://www.ohloh.net/p/qt5 dmd could really learn a thing or two

Re: strong enums: why implicit conversion to basetype?

2012-01-27 Thread Trass3r
extern(C): enum Bla : int {...} void foo(Bla b); How does this require implicit conversion? The codegen treats Bla like basetype anyway. Some of the Windows functions are made of multiple enums of different types, ORed together. -.- Microsuckx. Then I think it should either become a combine

Re: strong enums: why implicit conversion to basetype?

2012-01-26 Thread Trass3r
Is there any merit in having implicit conversion to the basetype? Allowing it to be used as an argument when calling C functions? extern(C): enum Bla : int {...} void foo(Bla b); How does this require implicit conversion? The codegen treats Bla like basetype anyway.

Re: enum scope

2012-01-26 Thread Trass3r
What about be able to do something like this: enum Foo { public: bar, fooBar, } Foo f = bar; public is the wrong keyword. Furthermore, the solution is not better than mixin Import!Foo; I think the extern(C) enum proposal is pragmatic and makes more sense. +1

Re: enum scope

2012-01-26 Thread Trass3r
If your binding is for yourself, that's not a big deal. But if you're putting it out there for public consumption, then I think compatibility with the C version would be more important. If someone is looking at sample C code, you should make it they don't need to adjust it much Yep, one big

Re: strong enums: why implicit conversion to basetype?

2012-01-26 Thread Trass3r
`typedef' is or will be disallowed in D because of reasons I do not understand. It's ill-defined. There are 4 possible types of typedef: http://d.puremagic.com/issues/show_bug.cgi?id=5467 In C and C++ their existence introduce problems because they increase the amount of parsing passes. C

Re: strong enums: why implicit conversion to basetype?

2012-01-26 Thread Trass3r
I have argued for banning those operations on strong enums before, but some objected to it because they wanted to use strong enums as bit flags. Yep, that's what the other thread 'using enums for flags' is about. But implicit conversions seem wrong in any case.

Re: DStep

2012-01-26 Thread Trass3r
Ok,Thanks for clarification! Seems that DStep is a missing link in the D tool-chain and should be part of the DMD package I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it works for me. I don't think it's in a usable state yet. I guess SWIG could be useful currently.

Re: strong enums: why implicit conversion to basetype?

2012-01-26 Thread Trass3r
Is there any merit in having implicit conversion to the basetype? Yes. Otherwise it would be at least close to equivalence to a `typedef'. Even typedef implicitly converts in one of the directions. A named enum is a separate type with a finite set of allowed values defined by the user.

Re: DStep

2012-01-26 Thread Trass3r
Sorry for my ignorance but why should one use DStep instead of htod in order to port plain vanilla C headers ? I have to admit that I haven't tried DStep yet. htod is Windows-only. And it sucks. For example it drops const, runs the preprocessor instead of turning preprocessor directives into

Re: strong enums: why implicit conversion to basetype?

2012-01-26 Thread Trass3r
On Thursday, 26 January 2012 at 14:45:02 UTC, Manfred Nowak wrote: Trass3r wrote: but by using named enums I made clear that Bla and Blub are totally different No. Obviously you decjlared both to be implicitely convertable to a common super type: int. To change this, both supertypes have

strong enums: why implicit conversion to basetype?

2012-01-26 Thread Trass3r
I thought it'd be good to outsource this question from the other thread about enums as flags. Is there any merit in having implicit conversion to the basetype? Imo it only introduces a severe bug source and brings no advantages. For example it allows implicit conversion to bool. enum Bla {

Re: enum scope

2012-01-26 Thread Trass3r
It's not type safe in C. But you can wrap it in a struct with alias this instead. Yep, but in D we have strong enums, so why not use them.

Re: using enums for flags

2012-01-26 Thread Trass3r
I agree, enum variable should only contain one of the enumerated values. Here's an example how current way may lead to unexpected result: enum Foo { A = 1, B } void bar( Foo foo ) { final switch( foo ) { case Foo.A: writeln( "A" ); return; case Foo.B:

Re: enum scope

2012-01-26 Thread Trass3r
Or if you absolutely need both type safety and the values to live in the outer scope, you can do this: enum Something { SomethingPointy, SomethingSmooth, } alias Something.SomethingPointy SomethingPointy; alias Something.Som

Re: automated C++ binding generation.. Booost D, NO , Not us. SIMD is more important.

2012-01-26 Thread Trass3r
Are the Clang C bindings complete? I imagine they don't get that much attention. It depends on what complete means. If you mean that you can do all the things you can do with the C++ API, then no. If you mean it's complete enough to implement this project, then I don't know. I think at least

Re: enum scope

2012-01-26 Thread Trass3r
Often C enum value naming takes into account that they'll live in the outer scope. For instance: enum UITableViewRowAnimation { UITableViewRowAnimationFade, UITableViewRowAnimationRight, UITableViewRowAnimationLeft, UITableViewRowAnimationTop,

Re: enum scope

2012-01-26 Thread Trass3r
You can use anonymous enums. The members will then live in the global scope. You can then use just one alias to an int, uint or what's appropriate. Yeah but you loose type safety.

enum scope

2012-01-25 Thread Trass3r
When writing C bindings I usually create lots of aliases via a string mixin to pull enum members into the enclosing scope so it's compatible to C. Would it be wise to let the compiler do this automatically for extern(C) enums?

Re: using enums for flags

2012-01-25 Thread Trass3r
I think that it makes sense to use enums as flags, but I do _not_ think that it makes sense to use an enum as the type of the variable _holding_ the flags. STC var = STC.A & STC.B; We could easily introduce @flags enum or whatever to make it more clear like in C#. just makes it worse.

Re: using enums for flags

2012-01-25 Thread Trass3r
In the codebase I have to work with, having the same enum specified in different places is rather common. Yeah, I hate it. This means I might have a filter defined using one enum, and the value to filter being a different type with the same values. Why don't you fix it then?

Re: MS extend C++ significantly for Windows8... and Andrei got name drop

2012-01-25 Thread Trass3r
Yeah, while refusing to implement most of C++11. To be fair, they did implement a big part of the library. I care more about long overdue language changes like non-static member initializers. But I do share your opinion here. I hate the way that Microsoft cherry picks the C and C++ standa

Re: MS extend C++ significantly for Windows8... and Andrei got name drop

2012-01-25 Thread Trass3r
Good! The C++11 committee should be shot. They've got it completely wrong, and MS have it right for my money! :) I don't want MORE STL, I want less :) C++11 contains important stuff like "for each", auto and #1: non-static member initializers.

Re: using enums for flags

2012-01-25 Thread Trass3r
Does it really make sense to allow bitwise operations on different enums? Maybe. Certainly sometimes Examples please. but those could just as easily use casts. Seconded. I generally don't see any merit in letting enums *implicitly* convert to their base type.

Re: Windows API and druntime/Phobos

2012-01-25 Thread Trass3r
There is no obvious finer-grained separation of modules, so including only a part of them would need to be done on mostly subjective decisions. Yep, Walter just added what he used.

Re: automated C++ binding generation.. Booost D, NO , Not us. SIMD is more important.

2012-01-25 Thread Trass3r
Whats.necessary to use D in order to create C++ bindings ? I forgot SWIG.

Re: automated C++ binding generation.. Booost D, NO , Not us. SIMD is more important.

2012-01-25 Thread Trass3r
I'm trying to reimplement the code as a separate tool in D using the Clang C bindings. So far it's not working out that well, there's not much documentation available. Are the C bindings complete? I imagine they don't get that much attention.

OT

2012-01-25 Thread Trass3r
For some reason your messages never have the proper position (i.e. they aren't connected with the post the respond to) in the message tree.

Re: MS extend C++ significantly for Windows8... and Andrei got name drop

2012-01-25 Thread Trass3r
This is fairly interesting. MS have extended their C++ compiler significantly for Windows8 with a bunch of non-standard stuff. Yeah, while refusing to implement most of C++11.

Re: MS extend C++ significantly for Windows8... and Andrei got name drop

2012-01-25 Thread Trass3r
Even if you paint shit yellow it's not necessarily gold. :D

Re: Can't the dmd source files finally get a proper C++ file extension?

2012-01-25 Thread Trass3r
Sorry, but it's needed for some ancient platform D has never and will never exist/ed on in. What platform is that?

Re: dmd makefile dependencies

2012-01-25 Thread Trass3r
I assume you mean the windows one? dmc is fast enough that recompiling takes very little time, especially compared to running the test suites. Nope, Linux. iirc Walter's complaint is that the makefiles quickly get out of sync anyway, so it's a better habit to use make clean constantly regardl

using enums for flags

2012-01-25 Thread Trass3r
So I was just reading http://stackoverflow.com/questions/1448396/how-to-use-enums-as-flags-in-c And did a quick test: enum STC { A = 0x1, B = 0x2, C = 0x4 } enum FOO { F = 0x8, G = 0x10 } void main() { STC s = STC.A | STC.C; STC s2 = s &

Re: automated C++ binding generation.. Booost D, NO , Not us. SIMD is more important.

2012-01-25 Thread Trass3r
Whats.necessary to use D in order to create C++ bindings ? github.com/jacob-carlborg/dstep

Re: dmd makefile dependencies

2012-01-25 Thread Trass3r
Run a clean build and test every so often (several times per hour) but MOST builds should be incremental so as to be as fast as can be managed. Yep, even Clang needs half a minute to do a full build for me.

Re: dmd makefile dependencies

2012-01-25 Thread Trass3r
Am 25.01.2012, 08:36 Uhr, schrieb Rainer Schuetze : A simple and effective way to do it with gcc is to generate dependency files (*.dep) during compilation with -MD/-MF and include these into the makefile with -include *.dep That sounds sound :)

Re: Can't the dmd source files finally get a proper C++ file extension?

2012-01-25 Thread Trass3r
Exactly. Even a capital .C is recognized as C++ source code if .cpp isn't desired.

dmd makefile dependencies

2012-01-24 Thread Trass3r
Is there any makefile guru who could (maybe use some fancy tool to) fix the dependencies? Having to recompile everything for each small change is annoying.

Re: public aliases to private/package symbols

2012-01-24 Thread Trass3r
Should aliases be allowed to raise the accessibility of a symbol? Yeah I do use that by having a private template function and public aliases to certain instances.

Re: Can't the dmd source files finally get a proper C++ file extension?

2012-01-23 Thread Trass3r
It's really annoying. clang++ gives a lot of warnings and IDEs are confused as well. Queue Walter saying that it's needed for some ancient platform D has never and will never exist/ed on in three... two... :D

Can't the dmd source files finally get a proper C++ file extension?

2012-01-23 Thread Trass3r
It's really annoying. clang++ gives a lot of warnings and IDEs are confused as well.

Re: A modest proposal

2012-01-23 Thread Trass3r
Adapt the bot or configure your client to ignore the bot. Plain simple.

Re: D for the web?

2012-01-23 Thread Trass3r
Alternatively, you could just program CGI in D. This is about client-side.

D for the web?

2012-01-23 Thread Trass3r
Just discovered this LLVM-to-Javascript translator: http://emscripten.org/ Looks really interesting, they even converted CPython. Might be interesting for D as well. Question is how the low-level stuff in druntime would work out.

Re: D1, D2 and the future of libraries

2012-01-21 Thread Trass3r
D2 only. No point in supporting D1.

Re: isize_t?

2012-01-21 Thread Trass3r
sizediff_t or ptrdiff_t I think

Re: 64Bit compatibility warnings

2012-01-21 Thread Trass3r
Or they're on windows. No excuse. Now there are prebuilt gdc packages :)

Re: 64Bit compatibility warnings

2012-01-21 Thread Trass3r
Couldn't it be handled by a special switch on 64 bit compilers, and disabled normally? Theoretically yes, but it would destroy the original intention. Ensuring 64 bit compatibility is as easy as compiling with -m64 from time to time, but some people can't be bothered. They won't use a new sw

Re: wxWidgets good news

2012-01-20 Thread Trass3r
Generating C functional wrappers is already pretty cool, but the fantastic news is SWIG output! As you may have noticed, SWIG has D support. Means : No need to manually re-create C++ classes in D. Does SWIG D support static linking by now?

64Bit compatibility warnings

2012-01-19 Thread Trass3r
Could we please have at least a warning if code isn't compatible with 64Bit? It's really annoying to test out some code and having to fix a bunch of stupid uint->size_t bugs just because the author is still on a 32 bit machine. Is that feasible?

Re: Why the Standard Library

2012-01-19 Thread Trass3r
I'm unfamiliar with the reason for C++ having a standard library as well (which I bring up when people bitch about poor design or something similar which I usually get no viable or any answer at all). More of an ignorant question probably but oh well... :D Do you know what a chaos there was

Re: DM linker vs GCC linker?

2012-01-18 Thread Trass3r
dmd -c test.d && gcc test.o -lphobos2 -lrt -lpthread -o testgcc vs dmd -c test.d && dmd test.o -oftestd Well dmd test.d calls gcc test.o -o test -m64 -Xlinker -L/dmd/linux/lib64 -Xlinker -L/dmd/linux/lib32 -Xlinker --no-warn-search-mismatch -Xlinker --export-dynamic -lphobos2 -lpthread -lm -

Re: DM linker vs GCC linker?

2012-01-18 Thread Trass3r
Configuration: Ubuntu 11.10 64bit DMD64 D Compiler v2.056 gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ? dmd also uses ld to link.

Re: Replacing version( Win32 ) with version( Windows )

2012-01-16 Thread Trass3r
Am 17.01.2012, 01:49 Uhr, schrieb Daniel Green : I'm running across version( Win32 ) in phobos. Often the code is perfectly valid for Win64 as well. Is it acceptable to replace version( Win32 ) with version( Windows )? Yep.

Re: Igor Stepanov's runtime reflection patch

2012-01-12 Thread Trass3r
DMD patch against commit c50eb5f (from December 31): http://j.mp/xdI0hb Druntime Github fork: https://github.com/IgorStepanov/druntime Why the heck isn't the dmd patch a fork as well?

Re: plans for interfacing to C++

2012-01-10 Thread Trass3r
On Tuesday, 10 January 2012 at 09:27:03 UTC, deadalnix wrote: Le 09/01/2012 19:19, Trass3r a écrit : On Monday, 9 January 2012 at 18:04:58 UTC, Michel Fortin wrote: Or maybe it should be a pragma instead. Interesting idea. But how to do it properly? A namespace or a class may have lots of

Re: plans for interfacing to C++

2012-01-10 Thread Trass3r
On Tuesday, 10 January 2012 at 12:09:14 UTC, Michel Fortin wrote: Another idea which would be much less verbose: extern(C++, gccmangle) void foo(); Here, gccmangle is a CTFE-capable function that'd be called like this: gccmangle("foo"); So if you need a namespace arg

Re: plans for interfacing to C++

2012-01-09 Thread Trass3r
On Monday, 9 January 2012 at 18:04:58 UTC, Michel Fortin wrote: Hmm another difficulty is how to switch between mangling schemes. One thing that could be done is instead of the namespace argument, have a mangled name argument. Then use CTFE to build the mangled name (if you want to). This w

Re: DMD - Windows

2012-01-09 Thread Trass3r
I'm sure it's possible, but it would need some pretty powerful global expression analysis. Ie, if data initialised in static this() is only touched in one function lets say, and that function is never referenced, then it should surely be able to safely eliminate that function and associated dat

<    1   2   3   4   5   6   7   8   9   >