implementation, shouldn't
writeln("säд"[2])
return "д" instead of the trailing surrogate of this cyrillic
letter?
First index is zero, no?
+1 signal
From a quick glance at your code, I believe you are using the
hooks wrong. In particular, what's the purpose of:
this.attachOnDestroy(&onSelfDestroy);
?
It prevents InvalidMemoryOperationError when in different cases
observer or observable not destroyed manually;
Also it is was implemente
I saw the announcement about new signal some time ago.
D Language is amazing, but in this case it's looks like little
bit complicated.
I written my code in terms of simplicity: using a standard
language features and simple design.
In the broadest sense it was a little experiment. As result
hg.m1xa.com/codewithd/commits/d81bfa586c7bd260afc19093fff6e42d66916860
Change-set contains two files: observer.d and event.d
Code is simple.
It would be great if this code will work without rt_... functions.
Any comments?
What about Win64 and VS Debugger?
On Wednesday, 18 September 2013 at 09:11:06 UTC, Namespace wrote:
On Wednesday, 18 September 2013 at 09:09:45 UTC, Iain Buclaw
wrote:
On 18 September 2013 09:38, Namespace
wrote:
http://consoleblog.me/posts/cocktails-for-programmers
Any suggestions for D?
Should make a cocktail named 'Garba
On Wednesday, 18 September 2013 at 08:38:05 UTC, Namespace wrote:
http://consoleblog.me/posts/cocktails-for-programmers
Any suggestions for D?
Vodka plus orangeade or just vodka for real men, yes? )))
Besides, we aren't on 300 baud serial lines!
As backup line I have 56k dial-up modem ;)
We still trolling each other about IDE ?) Or Win 8.1 UI is the
best UI?
On Sunday, 15 September 2013 at 18:24:11 UTC, Dicebot wrote:
On Sunday, 15 September 2013 at 18:21:35 UTC, Michael wrote:
KDE, Gnome, Unity, Xfce wtf?
Win 8.1 rocks)
I was astonished when had a look at Win 8 preview and have
noticed basically Shell / Unity overview as a start screen
KDE, Gnome, Unity, Xfce wtf?
Win 8.1 rocks)
Well D is now position 39 (September 2013)!
Challenge accepted)))
On Friday, 13 September 2013 at 19:48:18 UTC, Namespace wrote:
Just out of interest.
I use Sublime 2, Notepad++ and as IDE currently Mono-D. But I
will try this evening VisualD.
Sublime Text 3 or TextAdept, 4 whitespaces as tab)))
On Sunday, 8 September 2013 at 09:15:52 UTC, Namespace wrote:
I'm against it. More important than such a gimmick are the many
open bugs, auto ref, AA, scope, etc. And don't forget the
implementation of the virtual keyword.
+1
On Wednesday, 4 September 2013 at 05:02:06 UTC, Peter Alexander
wrote:
On Tuesday, 3 September 2013 at 17:09:04 UTC, Michael wrote:
Main line is positive trend over all year ;)
On Tuesday, 3 September 2013 at 13:13:11 UTC, Elvis wrote:
http://adambard.com/blog/top-github-languages-for-2013-so-far/
GitHub is GitHub only ;)
SourceForge Index: 21, TIOBE Index: 22.
Over last year the D has a positive trend on TIOBE. Waiting for
September's update.
/* The language for
On Thursday, 22 August 2013 at 21:44:57 UTC, Andrej Mitrovic
wrote:
On 8/22/13, Michael wrote:
For me it's no problem)
How are other people supposed to track bugs? Anytime someone
runs into
a bug that other people have already run into, the user has to
waste
time writing emails whe
On Thursday, 22 August 2013 at 21:11:32 UTC, Andrej Mitrovic
wrote:
On 8/22/13, Michael wrote:
Cite:
The official support mechanism is by e-mail, using
i...@tecgraf.puc-rio.br
Well that's discouraging..
For me it's no problem)
For additional comments it's better to contact
[1] :
http://forum.dlang.org/thread/pvplfosyrrgigtusp...@forum.dlang.org#post-afokkalgzxrsbnvpqgou:40forum.dlang.org
[2] : https://bitbucket.org/alphaglosined/libglosined (see the
iup directory)
It's looks as low-level-one-to-one D binding to C.
Now I trying to build a somewhat from examples
But where's the bug tracker?
Cite:
The official support mechanism is by e-mail, using
i...@tecgraf.puc-rio.br
Additional info on official site ;)
By the way there is no problem in communication with Tecgraf IUP
team.
Full support of Unicode in upcoming release at end of August.
OS X in progress, help needed.
Development and bugs fixing are very active, mailing lists
available via sf.net.
Maybe a port of Fltk library? Small and good enough.
On Tuesday, 13 August 2013 at 17:38:15 UTC, Jacob Carlborg wrote:
Is there anyone that have a good alternative to Github
downloads?
BitBucket, CodePlex, SourceForge
SkyDrive, DropBox
WindowsAzure, Amazon AWS
On Tuesday, 6 August 2013 at 11:58:37 UTC, Luís Marques wrote:
Are you developing Web / server applications in D?
VPS on waveride.at (EDIS)
On Friday, 2 August 2013 at 02:26:27 UTC, Nick Sabalausky wrote:
On Fri, 02 Aug 2013 03:27:22 +0200
"Mike Parker" wrote:
Yea, I've seen at least one moderator there who tended to be a
bit
of an ass (not necessarily D related), but that was several
years ago.
Glad it's
On Friday, 26 July 2013 at 19:42:59 UTC, J wrote:
I thought that runtime loading of dynamic libraries was
implemented on Linux.
If you need load a library with C interface, You can use
something like http://hg.m1xa.com/codewithd/src (see simple.f95
and symload.d)
On Saturday, 20 July 2013 at 15:52:33 UTC, Jordi Sayol wrote:
On 20/07/13 17:31, Michael wrote:
Hi, D community.
DMD is released regularly, but third party projects owners
doesn't want or doesn't have time to update documentation.
It's will be cool to have permanent links
Hi, D community.
DMD is released regularly, but third party projects owners
doesn't want or doesn't have time to update documentation.
It's will be cool to have permanent links to most resent stable
dmd release archive, linux .deb, .rpm package, windows installer,
etc.
Who can help with this
On Friday, 19 July 2013 at 20:49:27 UTC, Brian Schott wrote:
Status update:
excluding c-style array declarations, which I'm convinced are
broken and should be removed from the language
+1
I found for myself that "native" style arrays are more natural.
It's looks like he modify a source code from std.typecons
(something like class AutoImplement?) and a new thing called
"wrap" was created.
Like two fingers on the asphalt)
versioning on Win32/Win64 no longer works.
Why? or What exactly? Details please)
bat file that sets environment for D and related stuff.
-
@ECHO OFF
SET MS_VC_PATH=C:\Program Files (x86)\Microsoft Visual Studio
12.0\VC
SET MS_SDK_PATH=C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.1A
SET DE=%CD%\Environment
SET DEC=%DE%\Compiler
SET DER=%DE%\Runtime
SET DET=%DE%\T
https://code.google.com/p/xxhash/
BSD 2-Clause License
Cool)))
Any chances to see it [coff32] in official build?
Check twice where is yours 64 bit tools installed. Paths
something diff in Win8, VS2010, VS2012 Express installations.
I use Win 8 Pro 64 bit and stable Debian on VirtualBox without
big problems.
The last issue is the announcement that VS 2012 update 3 is the
last one and developers will need to buy VS.Next for the
remaining C++11 updates and the by side updates are actually
not going to happen.
I think they will start a new release circle of product, but
compiler tools will remain
Where do I put it?
Thanks,
Andrei
http://docs.sublimetext.info/en/latest/extensibility/syntaxdefs.html
OK, you convinced me to try. But my SublimeText OSX
installation does not contain the D.tmPackage file described at
https://github.com/alexrp/st2-d. Where do I put it?
Thanks,
Andrei
ST2 and ST3 have built-in D Syntax highlighting.
ST3 now in the beta stage, but have improved mac os x suppor
WinMerge on Windows, kdiff on Linux.
I see.
I agree with Andrej Mitrovic, it's curious feature, but
misleading.
Why Dmd accepts?
class E
{
@property public static pro(Object v)
{
}
}
Dmd 2.062 Win 64
* It is more natural, what most people would guess on
* It saves another of the 140 characters
* Is much easier to type
I just kill another of 140 chars and add both hashes. More spam -
better marketing.
I believe - we win!
Crash also occurs when
int[] a;
a.length = 10;
So, it's maybe something wrong with ms c runtime of VS 2012.
Just installed Update 2 for VS 2012, not helps.
This code works good.
string cwd()
{
import core.sys.windows.windows;
wchar[] ret = new wchar[10240];
auto n = GetCurrentDirectoryW(to!DWORD(ret.length), ret.ptr);
return ret[0 .. n].to!string();
}
Also similar problem/crash occurs in "dirEntries" on 64 bit.
I don't see it crashing over here. What version of dmd are you
using? Do you have some extra long cwd or some non-standard
characters in your path?
Usual path is "D:\Dev\M1xA\D"
OS: Win 8 Pro 64 bit
DMD 2.062
VS 2012 Express for Desktop
Code from Phobos successfully compiles, but crashes on 64
And std.utf is broken on Win 64?
Dmd 2.062, Win 8 x64
Example from
http://forum.dlang.org/thread/pnuxfheeaqwyfjdqw...@forum.dlang.org
crashes here
dfiles = dirEntries(compiler.srcDestination, "*.d",
SpanMode.depth);
files = dfiles.array;
And "absolutePath" also is broken (as it is use a getcwd as
default param)
As I as
So, there is problem in toUTF8 in std.utf "toUTF8(in wchar[] s)".
string cwd()// copied from phobos
{
writeln("start");
import core.sys.windows.windows;
writeln("buff");
wchar[] ret = new wchar[10240];
writeln("call");
auto n = GetCurrentDirectoryW(to!DWORD(ret.length), re
On Friday, 8 March 2013 at 13:25:42 UTC, Michael wrote:
Code works good on Win 32, but at start on Win 64 I got:
Exception code: 0xc005
Fault offset: 0x000132c5
If "auto currDir = getcwd();" commented, error is not appear.
getcwd broken on win 8 x64?
Code works good on Win 32, but at start on Win 64 I got:
Exception code: 0xc005
Fault offset: 0x000132c5
void main(string[] args)
{
auto workDir = "build_tmp";
auto currDir = getcwd();
string[] src;
string[] obj;
string cfg = "build.json";
Compiler compiler;
Sorry, this doesn't answer your question but in general, if you
are not going to pass the parameter to another function that
requires a 'string', then it is better to define that function
parameter as 'const char[]':
Tuple!(string[], FnType) parse(const char[] source)
{
// ...
}
That way
dmd extern.d
extern.d(22): Error: undefined identifier r, did you mean
template tr(C1, C2, C3
, C4 = immutable(char))(C1[] str, const(C2)[] from, const(C3)[]
to, const(C4)[]
modifiers = null)?
extern.d(22): Error: '__error' must be of integral or string
type, it is a _erro
r_
dmd extern.d
ex
Why I argue that the syntax `alias this = sym;` is wrong?
Because:
1. A normal alias declaration (creating aliased name for
existing symbol)
and alias this feature
(making a *subtyped* struct through implicit access to its
field) are
entirely different and has distinct semantics.
They merely
There is no justification for this.
I guess the main issue is that alias blah this; shouldn't have
made it into the grammar in the first place. But this was
obviously done in order to establish a broken analogy to the
other uses of alias. Either alias this=blah; must be kept or
the alias this
Was something changed intentionally or is this a bug?
It was changed intentionally, but only for alias this. That
syntax is allowed still for other aliases.
Bye,
bearophile
I see, thanks. What was the reason for not allowing alias
this = identifier?
Requiring lookahead when parsing.
Al
Wait, wait, so you're saying, this random guy sitting next to
you is, of
all things, coding in D, and you didn't even have a
conversation with
him?!
No time for explain, I will write it in D!!!
Most allow you to tweak certain aspects, not remove the entire
rendering output and start over. I've never found any OS widget
kit that allows completely and total control of the widget at
the pixel level.
On win mobile if std win forms were not enough, we were able use
win api(good old c and
Although there is a little chance one of the news group folks
has just registered it. :)
We have one more recruit - Foy Savas, rubyist ;)
D definitely have cookies)))
On Monday, 18 February 2013 at 15:05:03 UTC, Roy Obena wrote:
The closest thing to WPF that you can use in D is QML/QtD.
So why not support QML/QtD?
Overhead in api bindings.
Wpf and its data banding system are intented for MVVM pattern.
It's have own + and -.
It's more realistic to buil
XAML is a descriptive markup language and has nothing to do
with WinForms.
just google winforms xaml.
And Microsoft is promoting C++/XAML for Windows Store
Applications, you cannot write desktop applications using
WinRT. You're stuck in the desktop world to classic WinAPI/C++
development
On Sunday, 17 February 2013 at 15:29:56 UTC, Paulo Pinto wrote:
There we go again, XAML is WPF.
xaml can be used with WinForms.
yes, maybe technology the same, but concrete implementations are
different. For example, they all use hardware acceleration.
On Sunday, 17 February 2013 at 03:28:29 UTC, js.mdnq wrote:
WPF is pretty nice for .net. Is there any work towards building
a nice gui presentation layer for D, something that has or will
have all those nice modern features we are seeing in stuff like
WPF, QT, etc?
WPF - hardware accelerated
Oh, sorry.
Valid linker flag to do this
-L/ENTRY:"_Dmain"
MS linker by default allocates console window for programm if he
see a main function as entry point and not allocates if he see a
WinMain function as entry point.
So, if I don't want ugly console window for gui app, I can
specify SUBSYTEM:WINDOWS linker flag and change a main to WinMain.
But
In some DSL a struct can be defined as something like:
auto myStruct = new Struct("a:int; b:string; c:boolean");
So this looks like a simple dictionary or AA like Variant[string]
myStruct.
I don't see big difference in use. So D Way approach is Tuple
-simple and good enough.
It is possible write something like?
auto force = 2.0 * SI.Newton;
auto energy = force * 2.0 * SI.Meter;
Two more things:
Disable a read/write propa like int getSetSomeInteger(int).
int getSomeInteger() and void setSomeIntger(int) only allowed.
And disable default parameter for setter.
On Friday, 8 February 2013 at 23:53:40 UTC, Robert wrote:
Ok. Here finally it is:
http://wiki.dlang.org/DIP26
Best regards,
Robert
Why I should write fun()() when property returns a delegate?
Additional () should not be necessary.
Also combo properties like int get_set_IntValue(int) I thin
Just cross posting proposal
http://forum.dlang.org/post/rnwpxkmyihpzqlevh...@forum.dlang.org
Thanks)
As proposal:
class Example
{
public int IntProperty
{
get; private set;
}
private double _internalMember;
double FloatProperty
{
get out { assert(result > 0); } body { return
_internalMember * 42; }
set in { assert(value != 0); } body { _interna
Static nested struct as property... what is going on...
In this case is better to simply rid-off @property keyword.
"Properties" are better implemented where they created. Maybe
have bugs in design, but I think that property should be a simple
access method/function without struct-and-whatever-
As interface api good practice is usage virtual public functions
of classes.
So, (virtual) properties add an additional usefulness.
On Tuesday, 29 January 2013 at 19:36:50 UTC, Minas Mina wrote:
My opinion is to allow calling a function without parentheses
only in UFCS (properties must be called without). Is that so
hard to implement?
+1, and workaround:
@property I Do(alias fun, I)(I o)
{
return o is null ? null : (f
On Monday, 28 January 2013 at 21:03:04 UTC, Max Samukha wrote:
Let's face it: there are *no* objective criteria for
determining whether a mutator should be a function or property
setter.
Yes, but also it's should be a lightweight action (main idea).
As proposal:
http://forum.dlang.org/post/y
I think that "property as contract for accessing to variable" is
good point. Maybe we have lack proper terminology, but idea is
good.
Also it is can be pointed as "property itself - is static
contract to accessing variable".
class A{
private int i;
int foo{
out out(result){assert
On Sunday, 27 January 2013 at 12:07:35 UTC, Jacob Carlborg wrote:
Won't this conflict with contracts, which also uses the "in"
and "out" keywords?
As suggestion:
Property CoolThing looks like code contract for
_privateCoolThing. So it's maybe + or -.
At all, it looks like C# style in D Way.
int CoolThing { in; out; } - auto property without implementation;
int CoolThing { private in; out; } - private setter; public
getter;
int CoolThing
{
in
{
_privateCoolThing = @value * 42;
}
out
{
return 42;
}
}
Explicit calling: void in_CoolThing(int); int out_
On Wednesday, 16 January 2013 at 12:23:51 UTC, Andrey wrote:
class B {
protected int a=123;
}
class A : B {
int f(int b) {
//int a;// <--- I forgot to write this line
...
I just doing a chained null checks.
And I prefer when code looks like "a => ...".
In any case we have two ways to do same thing: "a => {...}()" and
"(a){...}".
Thanks Timon)
Windows have NuGet for Visual Studio or console client.
It is difficult to create package for each OS. In this case we
need a script that make a package for each OS or a one maintainer.
Or we need a one tool(script written in D) for the D (I mean D -
the D Platform) and website with list of p
Thanks guys)
auto With(alias fun, I)(I o) // maybe add a template constraint
here
{
static if(isAssignable!(I, typeof(null)))
return o is null ? null : fun(o);
else
return fun(o);
}
foreach(p; persons)
p.With!(x => x.address);
Now i
R With(I, R)(I o, R function (I) fun)
{
static if(isAssignable!(I, typeof(null)))
return o is null ? null : fun(o);
else
return fun(o);
}
class Person
{
private
{
string _name;
Address _address;
dmd ./main.d -debug -profile -w -v -g -cov -gs
// version v2.060
Reproducible.
dmd ./main.d -release -noboundscheck -O
// version v2.060
Irreproducible.
Win 8 x64, dmd x32.
Even OOP possible in asm.
It's completely OT ;)
Thread (and etc) is a high level abstraction that requires a
support by hardware/software/instruction set. If it necessary,
library can be integrated to language. And it's another one
question about design.
I read all thread and conclude that developers want a one button
- 'do all what I need'.
As mentioned above, for example, python have a arbitrary int
(that implemented as C library ;)).
C can be used on many platforms. For each platform developer have
solution as library. Right way is creati
And about C# checked:
http://msdn.microsoft.com/ru-ru/library/74b4xzyw.aspx
By default it is only for constants. For expressions in runtime
it must be explicitly enabled.
en link: http://msdn.microsoft.com/en-us/library/74b4xzyw.aspx
Machine/hardware have a explicitly defined register size and does
know nothing about sign and data type. fastest operation is
unsigned and fits to register size.
For example in your case, some algorithm that coded with
chained-if-checks may come unusable because it will slow.
And about C# ch
void f()
{
writeln("hi");
}
f; // this currently works
I don't know if this is possible to implement.
I expect it is, perhaps by disallowing calling a property
function with no arguments.
It's regular function called as property [getter] of module.
It's nice to have @property like in C
void f()
{
writeln("hi");
}
f; // this currently works
I don't know if this is possible to implement.
I expect it is, perhaps by disallowing calling a property
function with no arguments.
It's regular function called as property [getter] of module.
It's nice to have @property like in C
If it possible maybe some info can be taken from mono project?
It would be really awesome if you could ship the shirts to the
EU. I pledged 50$ nonetheless, if only there'll be recordings it
will be awesome enough :)
On Thursday, 15 November 2012 at 15:13:28 UTC, Andrei
Alexandrescu wrote:
On 11/15/12 6:39 AM, Joseph Rushton Wakeling wrote:
On 10/22/201
The announcement seems to suggest you might need an older mingw:
https://mail.mozilla.org/pipermail/rust-dev/2012-October/002489.html
Also if you had 0.3 you need to uninstall it before installing
0.4.
Yes. I read it. It is annoying.
I can't compile even hello world on both Win 7 and Win XP.
rust 0.4, latest mingw.
On Sunday, 23 September 2012 at 20:39:38 UTC, Andrei Alexandrescu
wrote:
I discussed this with Walter, and we concluded that we could
deprecate the comma operator if it helps tuples. So I started
with this:
http://www.prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP19
Unfortunately, I start
On Saturday, 15 September 2012 at 12:38:53 UTC, Henning Pohl
wrote:
The way D is dealing with classes reminds me of pointers
because you can null them. C++'s references cannot (of course
you can do some nasty casting). So you can be sure to have a
valid well-defined object. But then there is al
Loading Shared lib isn't big issues here.
The bigger one is building Shared library (written in D) and
running it in host application without issues (EH, shared GC
etc).
Andrei, if you find out how to make those things work, please
share your findings. I'm also in need of using shared librar
Thanks. The loading part is very useful, but I'm still lost
when it comes to build the shared library itself.
Andrei
Program loads dll at runtime using loader which is configured to
load concrete dll file(s). Like in gtkD
http://www.dsource.org/projects/gtkd/browser/trunk/src/gtkc/Loader.d
On Tuesday, 25 September 2012 at 17:13:44 UTC, Denis Shelomovskij
wrote:
.NET has FlagsAttribute, Java has EnumSet. Looks like we need
this too. How about to add a library solution to Phobos?
+1.
Also I'm not sure:
* Should we support converting from a number to a flag enum?
+1.
* If so,
101 - 200 of 355 matches
Mail list logo