On 9/15/13, Vladimir Panteleev vladi...@thecybershadow.net wrote:
I'm not sure this is an improvement, functionally.
It's not an improvement at all. Ctrl+F doesn't work with this (like
you mentioned), and the items list is not even sorted
alphabetically(!), so now we have to hunt down a symbol
On 9/15/13, Jonathan M Davis jmdavisp...@gmx.com wrote:
Yeah. It feels a lot like when you can't resize a Window like Microsoft
won't
let you done with the dialog for setting environment variables. When I mess
with my PATH in Windows, I typically have to copy it elsewhere, edit it, and
copy
On 9/15/13, monarch_dodra monarchdo...@gmail.com wrote:
By simply making them templates, I can improve the performance of
functions such as split on ascii white by 2 to 3 (!).
Speaking of which, I think the following special case should be allowed:
-
void foo()() { }
void main()
{
On 9/14/13, Nordlöw per.nord...@gmail.com wrote:
In the post
http://forum.dlang.org/thread/bug-638...@http.d.puremagic.com/issues/
I tried to compile
template isValidBinaryOp(T1, string op, T2) {
alias isValidBinaryOp = is(mixin(T1.init ~ op ~ T2.init) :
bool);
}
What is wrong?
On 9/13/13, Rainer Schuetze r.sagita...@gmx.de wrote:
I have converted the documentation to DDoc. Here's the result:
http://rainers.github.io/visuald/visuald/StartPage.html
I'm not sure if I mentioned this before, but I have to comment on the
following section:
```
Library search path not
On 9/13/13, Rainer Schuetze r.sagita...@gmx.de wrote:
I have converted the documentation to DDoc. Here's the result:
http://rainers.github.io/visuald/visuald/StartPage.html
Looks sweet! Btw, I suggest making that picture in the lower-right
clickable so you can zoom in to get the full resolution
On 9/10/13, l...@luismarques.eu@puremagic.com \Luís.Marques wrote:
When you declare an extern(C) function inside a D function it
seems to continue to use D's name mangling, which is unexpected
for me. For instance:
void main()
{
extern(C) void foo(int);
foo(42);
On 9/13/13, Sönke Ludwig slud...@outerproduct.org wrote:
Here's the discussion about JSON vs. YAML vs. SDL on the dub forum:
http://forum.rejectedsoftware.com/groups/rejectedsoftware.dub/thread/2/
Can we specify values on multiple lines? E.g. this line:
libs-windows gdi32 user32
To somehow
On 9/13/13, Sönke Ludwig slud...@outerproduct.org wrote:
Both of these should work:
libs-windows \
gdi32 \
user32
libs-windows gdi32
libs-windows user32
Great!
On 9/13/13, Namespace rswhi...@googlemail.com wrote:
Just out of interest.
Scite: http://www.scintilla.org/SciTE.html
I use it because it's easy to configure, starts fast, loads big files
fast (compared to e.g. Sublime text), it seems to not break on any
funky new git-head version of D, and
On 9/13/13, H. S. Teoh hst...@quickfur.ath.cx wrote:
Not to mention, syntax highlighting falls down upon encountering q{}
blocks.
Works on Scite.
(It *can* be made to highlight those as well, I suppose, but it
leads to the awkward situation where you can't tell whether that's code
or a
On Friday, 13 September 2013 at 19:54:30 UTC, Orfeo wrote:
// in gadget.d
: import std.stdio;
: import acme.goodies.io.string;
: public void wun() { }
Add the module declaration module acme.gadget; at the top of
this file and it should work.
On 9/12/13, simendsjo simend...@gmail.com wrote:
Thanks. I just ended up using both is(__parameters and
is(function to fetch the parameter names. Sometimes it seems
things are added to D without a very thorough design phase, but
then again, it starts with __, so I guess I'm on my own :)
Have
On 9/12/13, Joseph Rushton Wakeling joseph.wakel...@webdrake.net wrote:
import std.range;
void main()
{
assert(isRandomAccessRange!(const(size_t[])));
}
results in an assertion error. This is a bug, no ... ?
I think ranges have to be non-const. I mean how can you iterate over
On 9/11/13, Kagamin s...@here.lot wrote:
I'd say, strong handles shouldn't act as pointers (and shouldn't
contain pointers), so null shouldn't work.
NULL is already used in a ton of WinAPI C/C++ code and MSDN
documentation, it would be a major pain in the ass to have to use e.g.
HWND(0)
On 9/10/13, Jacob Carlborg d...@me.com wrote:
A mixin should not be necessary. RTInfo can be used for that:
https://github.com/D-Programming-Language/druntime/blob/master/src/object.di#L575
The mixin was demonstrated for convenience so you don't have to
manually type in the class name (or use
On 9/10/13, Dicebot pub...@dicebot.lv wrote:
Main issue of .di files that make them useless for anything but
providing declarations for blobs is that there is absolutely zero
compiler control of .d and .di relation.
Yeah, I think we could attempt to provide an alternative to DIP47 by
adding a
On 9/10/13, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote:
s/release/realize
--- apparently needs coffee
Realize the kraken!
Bug or feature?
You will get a linker error when you try to use the function.
This is a feature, because you can implement this function later or
even in another module (and set mangling to match).
Example of the former:
-
interface A {
public:
final void bar(); // declaration
On 9/9/13, Ramon s...@thanks.no wrote:
Windoze because I write it in a way you don't like? Sorry, that's
ridiculous. Similarly I write Visual$ - the $ meaning fill in as
appropriate - rather than VisualStudio, VisualExpress,
VisualBasic, VisualNet, VisualWhoKnowsWhat? Ridiculous!
Drop the
On 9/9/13, Adam D. Ruppe destructiona...@gmail.com wrote:
Listing the files could be made easy with the dmd -r people have
talked about (taking what rdmd does and putting it in the
compiler). Then it does it automatically.
I doubt you'll see much impact on compile speed. Importing a
phobos
On 9/9/13, Joseph Rushton Wakeling joseph.wakel...@webdrake.net wrote:
A well-defined rule for separating out declarations and definitions would
check
for that and throw a compile error.
You could use compile-time introspection where the API would look like:
class C
{
void foo();
void
On 9/9/13, Namespace rswhi...@googlemail.com wrote:
Ok I fill a bug for that...
Please do, that code should compile.
On 9/8/13, Namespace rswhi...@googlemail.com wrote:
What is the problem? If the compiler is able to cast implicit
from ushort to short, what is the problem of casting ushort[2] to
short[2]?
Oh I didn't even noticed it was a signed/unsigned issue. I'm not sure
whether or not it's a bug. But
On 9/9/13, H. S. Teoh hst...@quickfur.ath.cx wrote:
And even then, it may anger a lot of existing users.
I'm not sure about that. It seems people who actually write
class-based code would prefer to have this (that's my limited analysis
of IRC comments :p).
On 9/9/13, H. S. Teoh hst...@quickfur.ath.cx wrote:
Well, then I stand corrected. :)
You may sit. You get a D.
On 9/8/13, Michel Fortin michel.for...@michelf.ca wrote:
So I'd like to suggest this: allow a .d file to import its corresponding
.di file.
This is actually what Andrei proposed as well.
On 9/8/13, Daniel Murphy yebbl...@nospamgmail.com wrote:
Two strategies that will prevent this bug are:
1) Put the 'alias' members directly after the member they reference
2) Put the 'alias' members at the end
There is another strategy, which I currently use, is to explicitly
initialize all
On 9/8/13, monarch_dodra monarchdo...@gmail.com wrote:
enum S
{
a,
alias b = a,
}
This would create an enum with a *single* entry, which can be
accessed via two different names.
Yeah I've thought about this separately from that enhancement, I think
this feature *alone* would
On 9/8/13, Jesse Phillips jesse.k.phillip...@gmail.com wrote:
I realize that we want to make it as painless as possible for
Remedy to switch from C++ to D (along with the rest of the game
developers).
FWIW I don't think this has anything to do with Remedy (afaik Manu
doesn't work there
On 9/8/13, Ramon s...@thanks.no wrote:
Fox and fltk are
nice little thingies but not up to (todays) par lacking even
functionality like printing.
Printing seems like something that should be in a separate library,
and maybe the GUI library would provide a nice interface over its
functionality.
On 9/8/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
Does the alias member feature pull its weight? Or is it overkill and
we should drop it?
Anyway after some more thought I think it's overkill, since not
resetting the counter could be just as confusing as resetting it.
On Sunday, 8 September 2013 at 23:24:32 UTC, Walter Bright wrote:
On 9/7/2013 9:45 PM, Daniel Murphy wrote:
tl;dr I don't think this justifies a new feature. A lint
rule, absolutely.
A warning, possibly. But not a new feature.
I agree with the reasoning of the others here - not worth it.
On 9/7/13, Flamaros flamaros.xav...@gmail.com wrote:
We choose the boost one.
That's great, but your license file is empty:
https://github.com/D-Quick/DQuick/blob/master/License.txt
On 9/7/13, Walter Bright newshou...@digitalmars.com wrote:
http://wiki.dlang.org/DIP47
Am I correct to say that such member definitions will have the same
overload rules as before? Currently using UFCS has issues where
function hijacking prevention will cause errors at compile time, for
example:
On 9/7/13, Walter Bright newshou...@digitalmars.com wrote:
3. Parameter names need not match.
I disagree with this, because it will practically guarantee that
declarations and definitions go out of sync, which will be *harmful*
for readability (which is partly what this DIP is all about).
4.
On 9/7/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
If 'val' will always refer to a.val in the declaration module
I meant if 'val' in the parameter list in the outlined function always
refers to 'a.val'.
On 9/7/13, Walter Bright newshou...@digitalmars.com wrote:
http://wiki.dlang.org/DIP47
1. Only member functions of aggregates at module scope can be outlined.
This is an unnecessary restriction. You haven't provided any reason in
the DIP why #1 is necessary.
On 9/7/13, Walter Bright newshou...@digitalmars.com wrote:
http://wiki.dlang.org/DIP47
Your example code:
-
struct S {
static int mfunc(int a, int b = 5) pure;// member function declaration
}
int S.mfunc(int a, int b) pure {// member function definition
...
}
-
Two
On 9/7/13, Walter Bright newshou...@digitalmars.com wrote:
How a function is to be *used* should be all there in the *declaration*. Not
the definition.
I mean the *header* part of the function's definition (everything up
to the closing parens of the parameter list). If someone is currently
On 9/7/13, Adam D. Ruppe destructiona...@gmail.com wrote:
pragma(mangle, A.foo.mangleof)
void foo_impl(A _this) {}
It's cute, but it it doesn't allow you to e.g. implement constructors
outside the class. It also doesn't allow you to call a 'super' method
without explicitly naming the class.
I've recently ran into a bug that was very hard to track down for me.
I've had a good set of unittests, but I kept getting the wrong results
out of my functions, which was very bizarre.
To boil it down, when you introduce a member in an enum which
initializes itself to another member of that
On 8/22/13, Flamaros flamaros.xav...@gmail.com wrote:
After the publication of our sources :
https://github.com/D-Quick/DQuick
P.S.: You should really add license headers in your files and/or a license file.
On 9/6/13, Brad Anderson e...@gnuk.net wrote:
hyphenate.js uses a big language lookup table to insert thousands
of shy
Wouldn't it be much more effici-
ent and more readable to just use word
wrapping? I find hyphenation to create unread-
able documents, because it always for-
ces me to stop and
On 9/6/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
stop and rewind be-
fore I can read the next word
Sorry, I meant the current word fully.
On 9/7/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
No, it doesn't.
You're outgunned! The council has spoken. :o)
On 9/5/13, Timothee Cour thelastmamm...@gmail.com wrote:
So would it be possible to detect such kind of errors (ie CT error
regardless of template params) without having to instantiate the template?
How would you semantically analyze the following without instantiating it?:
-
template T(X)
On 9/3/13, Adam D. Ruppe destructiona...@gmail.com wrote:
On Tuesday, 3 September 2013 at 21:20:04 UTC, Andrej Mitrovic
wrote:
foreach (id; ParameterIdentifierTuple!func)
How do I keep missing these new std.traits things? Very nice.
It's really funky that an is() expression is used
It seems development is still held at dsource:
http://www.dsource.org/projects/bindings/wiki/WindowsApi
Recent changesets:
http://www.dsource.org/projects/bindings/timeline?from=09%2F03%2F13daysback=90wiki=onchangeset=onmilestone=onticket=onupdate=Update
I've used a personal mirror here so I can
On 9/3/13, Elvis elvis_c...@hotmail.com wrote:
Why D get less popular than last year in positive influence of
great DConf 2013?
It could just be that the Github language detection mechanism got
better. A lot of repositories have been known to be marked as
D-language repos, when they had nothing
On 9/3/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
Sounds great. There's a related bugzilla entry IIRC.
There was this:
http://d.puremagic.com/issues/show_bug.cgi?id=3780
And a pull:
https://github.com/D-Programming-Language/phobos/pull/1030
However I think that pull request
On 9/3/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
Yep, that's the one. http://d.puremagic.com/issues/show_bug.cgi?id=3780.
Another impotant note to make is that the pull for #3780 was made
before UDAs were available.
Now that we have them, we can make a more reliable and
On 9/3/13, Ary Borenszweig a...@esperanto.org.ar wrote:
When you do import foo.bar you are importing arbitrary code...
You are importing symbols. And when you do foo() you know you're
calling a function. With the change, you'll never know what foo()
does.
This feature is never going to fly, but
On 9/3/13, Jacob Carlborg d...@me.com wrote:
On 2013-09-03 18:43, Andrej Mitrovic wrote:
getopt(args,
count, count, @doc(This is the thread count));
That's a lot better, but it still needs to match the help text to the flag.
Ah, maybe @doc(count, This is the thread count) ? Then you
On 9/3/13, Jacob Carlborg d...@me.com wrote:
With properties you never know if you're invoking a method or accessing
a field:
foo.data; // call method or access field?
Yeah but it does something with data on its own side. If this becomes
an implicit mixin, it could do something with code at
On 9/3/13, Dylan Knutson tcdknut...@gmail.com wrote:
I tried that, but unfortunately std.variant isn't compatible with
zero sized types:
Please do file this as a bug:
http://d.puremagic.com/issues/enter_bug.cgi?product=D
If you don't have the time, we'll file it for you. Thanks!
On 9/3/13, Gary Willoughby d...@nomad.so wrote:
Using traits how do i get a methods's parameters as a string? Say
i have the following method:
Here's a first attempt:
-
import std.range;
import std.string;
import std.stdio;
import std.traits;
class C
{
void setAge(int age, int)
{
On 9/2/13, Manu turkey...@gmail.com wrote:
But I still barely see this as an inconvenience when compared to not being
able to read a class definition.
How about not being able to read the include paths in VS? I'm talking
about this:
http://i.stack.imgur.com/0cTZG.png
You can view 2 lines at a
On 9/2/13, Robert Schadek realbur...@gmx.de wrote:
Migrating Bugzilla to Github issues might be a start.
https://github.com/rowanj/BugzillaMigrate helps with this task. And
while we're at it, lets also move the wiki to github.
We've already discussed this, we already have a new wiki that we've
On 9/2/13, Jacob Carlborg d...@me.com wrote:
This is a simple idea:
uint timeout;
getopt(args, timeout|t, timeout).help(Set the timeout);
W.r.t. help strings, I would prefer if we could instead use:
getopt(args,
timeout|t, timeout, Set the timeout,
other, other, // note: no comment!
On 9/2/13, Manu turkey...@gmail.com wrote:
Contrary to how it may seem, I don't actually love Visual Studio as hard as
you may think. I'd love for MonoDevelop perhaps to supersede it... but it's
just not there yet. Not by a long shot.
Well, the way I see it if any of us were to work on an IDE,
On 9/2/13, H. S. Teoh hst...@quickfur.ath.cx wrote:
In vim, you just sit the cursor on the opening '{' and press '%', and
behold! the next method in the list! :) Or install the D syntax
highlighting files and have vim automatically fold function bodies for
you.
Yeah Vim is great. But I
On 9/2/13, H. S. Teoh hst...@quickfur.ath.cx wrote:
It took me a while
to get used to this mode of navigation, but I found it far superior to
whatever it was I used to do.
I once wrote a VIM mode for Scintilla, using AutoHotkey (win32 tool
for keyboard shortcuts).
It even had a sort-of
On 9/2/13, Walter Bright newshou...@digitalmars.com wrote:
Done! And CLI Clint goes and surfs the n.g. while GUI Gus has just gotten to
picture 4, only 996 more to go!
Some GUI apps have macro features, or batch processing. Take a look at
IrfanView for image batch conversion:
On 9/2/13, Jos van Uden use...@fwend.com wrote:
It's like the environment variables. You have to copy the path to the
clipboard
and then to a plain text editor to have a proper look at it.
It's why I use: http://www.rapidee.com/en/screenshots
It will even flag non-existing flags in red.
On 9/3/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
It will even flag non-existing flags in red.
Non-existing *paths*.
On 9/3/13, Dylan Knutson tcdknut...@gmail.com wrote:
Take a look at this:
http://dpaste.dzfl.pl/6bf578a3
I suggest:
-
void sendPayload(Resp)(Resp response)
{
static if(Resp.sizeof) {
pragma(msg, has a size);
}
else {
pragma(msg, has no size);
}
}
void
On 9/3/13, Lionello Lunesu lione...@lunesu.remove.com wrote:
struct Z {};
Z a, b;
assert(a != b);
Since the structs are declared empty, their 1-byte values don't
matter. So their addresses don't really matter either.
On 9/1/13, dennis luehring dl.so...@gmx.net wrote:
it seems that the old malloc implementation was the source of
the 2x speed difference between dmc and msvc build
Not really, the MSVC build is still faster. :)
On 9/1/13, Michel Fortin michel.for...@michelf.ca wrote:
So I'm no longer using D, but I'm still hanging around here from time
to time because there's always something interesting to read.
That's a shame. But yeah, people should use what makes them productive
and what brings food on the table,
On 9/1/13, Jakob Ovrum jakobov...@gmail.com wrote:
I'm not sure this is a bug. How do you default initialize an
array of structs you don't know the .init values of?
Note that this is an array of /pointers/ to opaque structs, so it's valid code.
On 9/1/13, Manu turkey...@gmail.com wrote:
** If you want to link against any other libraries.
Only if you want to do it statically, but you don't need to mess with
COFF for DLLs, most of these libs you've listed can build either
statically or as a DLL.
On 9/1/13, Manu turkey...@gmail.com
On 9/1/13, Jacob Carlborg d...@me.com wrote:
On 2013-09-01 09:55, Walter Bright wrote:
All open issues (the latest are at the end):
http://d.puremagic.com/issues/buglist.cgi?query_format=advancedbug_status=NEWbug_status=ASSIGNEDbug_status=REOPENED
I doesn't look like the latest are at the
On 9/1/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On 9/1/13, Jacob Carlborg d...@me.com wrote:
On 2013-09-01 09:55, Walter Bright wrote:
All open issues (the latest are at the end):
http://d.puremagic.com/issues/buglist.cgi?query_format=advancedbug_status=NEWbug_status
On 9/1/13, Daniel Murphy yebbl...@nospamgmail.com wrote:
Please keep doing this. It really isn't a big deal to clean up the
duplicates.
Yeah, agreed. If anything, duplicate reports show us how frequent an
issue is ran into by users and allows us to prioritize the issues a
bit.
On 9/1/13, Manu turkey...@gmail.com wrote:
You mean dynamically loading DLL's, and finding/hooking up the symbols
manually?
You can use an import library (implicit linking) that's creatable with
the implib tool rather then having to load each symbol by hand
(explicit linking) via
On 9/1/13, Manu turkey...@gmail.com wrote:
Perhaps the dev's here use relatively few, or very simple classes?
I think it's the latter. Plus we have UFCS, so we don't necessarily
have to define everything as a member function. Also remember that D
isn't so reliant on classes for polymorphic
On 9/1/13, Joseph Rushton Wakeling joseph.wakel...@webdrake.net wrote:
The Ubuntu bug-tracker on Launchpad seems quite good at identifying
duplicates,
but that relies on some fairly sophisticated automated error-report
generating
software on the desktop.
The stackoverflow approach of listing
On 9/1/13, Walter Bright newshou...@digitalmars.com wrote:
3. provide commented-out example settings for each variant of VS as we
discover
what they should be
Imagine if after installing Windows 7 you were provided with a
boot.ini file which didn't work, but hey, it had commented out
examples
On 9/1/13, Brad Anderson e...@gnuk.net wrote:
What I need from you guys and your different VS installs is,
for each one, a bug report with what is necessary to get it
installed. Then we can add it to the modern version of my
floppy disk linker collection.
This can be automated easily enough.
On 8/30/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
* typedef: it was so ill defined, bringing it any closer to sanity
would've broken someone's code.
So it had to be properly defined in the spec and implemented.
Meanwhile we're fighting with the Phobos Typedef and it has way
On 8/31/13, ilya-stromberg ilya-stromberg-2...@yandex.ru wrote:
D can not override template and nontemplate function.
It was a long-standing bug which was fixed in git-head and will work
in the 2.064 release.
On 8/30/13, Walter Bright newshou...@digitalmars.com wrote:
The only further enhancement I really want to get in this release is DLL
support for Linux.
And if it's (mostly) done, we should put it in the changelog, since
it's a pretty big deal!
On 8/31/13, Jacob Carlborg d...@me.com wrote:
A delegate/function pointer will bypass the protection.
How will you pass a pointer to a constructor?
Do you have a source for this? I don't trust random binaries,
especially ones that are hosted on an .ru site..
On 8/31/13, Temtaime temta...@gmail.com wrote:
Hi, guys!
I've made DMD build using MSVC(ICC has some performance troubles)
and tcmalloc, so it can compile more than 2x faster.
On 8/31/13, Andrei Alexandrescu seewebsiteforem...@erdani.org wrote:
Library issues are a lot easier to deal with than core language issues.
Not when you have Kenji around!
On 8/31/13, Jacob Carlborg d...@me.com wrote:
Replace that line with:
auto dg = result.__ctor;
dg(args);
Hmm... I hope this can actually work when there are multiple ctors,
how would the compiler know which of the ctors dg should be assigned
to?
On 8/31/13, Temtaime temta...@gmail.com wrote:
You can get DMD source on DMD's github.
I'm asking about the modified version which uses tcmalloc. You've said
it compiles 2x faster, but faster to what? The regular MSVC build is
already known to be 2x faster than the one built with DMC.
On 8/31/13, Jacob Carlborg d...@me.com wrote:
T delegate (Args) dg = result.__ctor;
dg(args);
Ah, pretty cool workaround.
On 8/31/13, Piotr Szturmaj bncr...@jadamspam.pl wrote:
On 31.08.2013 21:52, Andrej Mitrovic wrote:
On 8/31/13, Jacob Carlborg d...@me.com wrote:
T delegate (Args) dg = result.__ctor;
dg(args);
Ah, pretty cool workaround.
Then, why not close that old bug?
It needs to be fixed first.
On 9/1/13, Flamaros flamaros.xav...@gmail.com wrote:
I am a Windows user, but I don't understand why others
platforms are forgotten.
I think it's because win32 is the easiest to create a native library
for, since the standard API functions for creating windows and widgets
has been the same for
On 9/1/13, Manu turkey...@gmail.com wrote:
The only compiler you can realistically use productively in windows is
DMD-Win64
Why? Win32 works fine for me and many others. If you run into
Optlink-related bugs it's usually the compiler's fault. It might
generate a bad object file and cause Optlink
I'm trying to achieve the syntax opts[...] = 123, rather than using
the more direct this[...] = 123. I can use this code:
-
class C
{
this()
{
opts = Opts(this);
opts[foo] = 1;
}
struct Opts
{
C c;
void opIndexAssign(T)(T value, string
On 9/1/13, Ali Çehreli acehr...@yahoo.com wrote:
This is the limitation of inner structs' not having an 'outer'
reference, right?
Right, but this was just a workaround. Anyway I did just realize I can
use opDispatch for this:
-
class C
{
this()
{
this.opts[foo] = 1;
}
On 8/30/13, Gour g...@atmarama.net wrote:
Based on what I've seen, Tk-8.6 is quite good and available *today*,
while DQuick is still prototype only.
I especially like its configurable event mechanism, because I can
build my own event propagation mechanism on top of it, and provide
something
On 8/30/13, Johannes Pfau nos...@example.com wrote:
Am Sat, 31 Aug 2013 04:09:10 +1000
schrieb Manu turkey...@gmail.com:
So should I extern(C) the forward declaration?
Sometimes
---
struct MyStruct {}
---
Yeah opaque structs have their bugs, I currently use this workaround in dlibgit:
You're going to need DMD git-head to run this reduced example:
-
struct S
{
void opAssign(T)(T t)
if (Constraint!T)
{
}
void opAssign(typeof(null))
{
}
template Constraint(T)
if (is(T == int))
{
enum bool Constraint = false;
}
}
On 8/30/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
I'm not looking for a workaround (there's plenty of ways to work
around this)
Here's one way:
void opAssign(T)(T t)
if (is(typeof(Constraint!T)) Constraint!T)
{
pragma(msg, T);
}
void opAssign(T)(T
On 8/30/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
On 8/30/13, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
I'm not looking for a workaround (there's plenty of ways to work
around this)
Here's one way:
Sorry, better version, the second function doesn't need to be a
template
On 8/30/13, Ali Çehreli acehr...@yahoo.com wrote:
Now your program works with a single change:
enum Size = paddedSize!C();
Excellent.
However will the compiler align all static arrays so their memory
begins at a proper offset?
Maybe a more appropriate question is: Is all stack data
801 - 900 of 4829 matches
Mail list logo