On Fri, Jun 23, 2017 at 10:10:22PM -0700, Ali Çehreli via Digitalmars-d-learn
wrote:
> On 06/23/2017 09:26 PM, Felix wrote:
> > That works, thanks!
>
> I've just tried this, which seems cleaner:
>
> import std.stdio;
> import std.system;
> import std.bitmanip;
>
> void ensureBigEndian(T)(ref T
On Friday, 23 June 2017 at 21:36:07 UTC, Moritz Maxeiner wrote:
Contracts within the DbC paradigm *are* abstractions that do
not necessitate any particular implementation.
In practice, though, what must any such implementation actually
achieve?
1. allow the source code to express its intent
On 06/23/2017 09:26 PM, Felix wrote:
That works, thanks!
I've just tried this, which seems cleaner:
import std.stdio;
import std.system;
import std.bitmanip;
void ensureBigEndian(T)(ref T value) {
if (endian == Endian.littleEndian) {
value = *cast(T*)nativeToBigEndian(value).ptr;
That works, thanks!
On 06/23/2017 07:52 PM, Felix wrote:
> So I'm guessing my ubytes are in the
wrong order in the uint... how should I put them around the correct way
so that my code won't break on another machine with different endianness?
Yes, that would happen when your system is little-endian. (According to
On 23 June 2017 at 22:34, Kagamin via Digitalmars-d <
digitalmars-d@puremagic.com> wrote:
> There's ldc installer?
>
Sounds like a good starting point :)
Refit the DMD installer and offer it alongside the archives?
I'm trying to read in just the first part of a .png file to peek
at it's width and height without loading in the whole file. I'm
using FreeImage for reading the whole file but since it doesn't
have a function to let me peek at the image size before loading
it all in I'm rolling my own.
I've
On Friday, 23 June 2017 at 13:31:04 UTC, Petar Kirov [ZombineDev]
wrote:
Hi evilrat. That's unfortunate to hear. I would to suggest a
way forward.
What do you think about joining dlang-community [0] [1]?
That way:
* You remain an owner of your repo, so you can continue to
develop it if/when
On Friday, 23 June 2017 at 21:14:47 UTC, MysticZach wrote:
On Friday, 23 June 2017 at 20:49:35 UTC, Moritz Maxeiner wrote:
...
I'm not sure what you're getting at here. With the proposal
Timon implemented we have the following:
- the newer, decoupled contract syntax that separates contract
On Thu, Jun 22, 2017 at 12:48:25AM +, Seb via Digitalmars-d wrote:
> Hi,
>
> I am currently trying to modernize the D code example roulette on the
> dlang.org front page [1]. Hence, I would love to hear about your
> favorite feature(s) in D.
> Ideas:
> - favorite language construct
> -
On Friday, 23 June 2017 at 22:35:04 UTC, Paulo Pinto wrote:
On Friday, 23 June 2017 at 20:25:10 UTC, Joakim wrote:
C# lost out internally at Microsoft precisely because of how
bloated it made everything, with signs that native is
ascendant again in recent years:
On Friday, 23 June 2017 at 21:31:00 UTC, Araq wrote:
...
That's just "I looked at the websites, never used these tools
in practice but found them convincing" phrased differently to
pretend you have an argument.
The success of Go strongly indicates people generally don't
connect Java/C# to
On Friday, 23 June 2017 at 20:25:10 UTC, Joakim wrote:
On Friday, 23 June 2017 at 16:49:54 UTC, Kagamin wrote:
On Friday, 23 June 2017 at 06:41:26 UTC, Bienlein wrote:
Java, Kotlin, C# are still Jit compiled languages, with the
memory footprint to prove it :)
The memory footprint doesn't
On Wednesday, 21 June 2017 at 11:30:56 UTC, Ivan Kazmenko wrote:
[...]
Step 5. I don't get any lib files.
I got lib files on another computer, though.
On Friday, 23 June 2017 at 21:14:47 UTC, MysticZach wrote:
On Friday, 23 June 2017 at 20:49:35 UTC, Moritz Maxeiner wrote:
Normal usage of the new syntax? If asserts later on get a
(possibly breaking) syntax overhaul that will affect (and
forward breakage to) the contract syntax, as well, if
On Friday, 23 June 2017 at 20:13:15 UTC, Paulo Pinto wrote:
ExcelsiorJET is quite easy to figure out, you can download
their open source version.
So in other words, you do not have used these products and only
read their websites, got it.
Some products go the static linking way, others map
On 6/23/17 4:24 PM, Boris-Barboris wrote:
On Friday, 23 June 2017 at 20:13:07 UTC, ag0aep6g wrote:
You've got bad `@trusted`s:
Ty, I misunderstood the concept. I guess in a code like this it's mostly
@system anyways, too many indirections to control safety level. I'm
probably gonna remove
On Friday, 23 June 2017 at 10:38:23 UTC, Russel Winder wrote:
350 issues, 42 pull requests. I have to admit I am shocked.
After looking at the dub code I have to say the code is well
written and well structured. That makes it easy for the community
to help solving bugs.
My gut feeling is
On Friday, 23 June 2017 at 20:49:35 UTC, Moritz Maxeiner wrote:
Normal usage of the new syntax? If asserts later on get a
(possibly breaking) syntax overhaul that will affect (and
forward breakage to) the contract syntax, as well, if it uses
the same compiler infrastructure.
I believe this
On Friday, 23 June 2017 at 20:27:58 UTC, MysticZach wrote:
On Friday, 23 June 2017 at 20:03:17 UTC, Moritz Maxeiner wrote:
No. Asserts are the meat of in/out contracts, these are
actually asserts. Anything you do to the assert grammar
should be done here as well.
I agree. I can understand
On Fri, Jun 23, 2017 at 04:15:38PM -0400, Steven Schveighoffer via
Digitalmars-d wrote:
[...]
> You can always still do in and out block syntax. Or is this DIP
> proposing to do away with that? I didn't see any mention of
> deprecating current syntax.
>
> I view this improvement like short
On Friday, 23 June 2017 at 20:03:17 UTC, Moritz Maxeiner wrote:
No. Asserts are the meat of in/out contracts, these are
actually asserts. Anything you do to the assert grammar
should be done here as well.
I agree. I can understand wanting to pass in/out violations to
a different handler
On Friday, 23 June 2017 at 16:49:54 UTC, Kagamin wrote:
On Friday, 23 June 2017 at 06:41:26 UTC, Bienlein wrote:
Java, Kotlin, C# are still Jit compiled languages, with the
memory footprint to prove it :)
The memory footprint doesn't matter. Those times are OVER :-).
Do you want D to
On Friday, 23 June 2017 at 20:13:07 UTC, ag0aep6g wrote:
You've got bad `@trusted`s:
Ty, I misunderstood the concept. I guess in a code like this it's
mostly @system anyways, too many indirections to control safety
level. I'm probably gonna remove most of the attributes.
On 6/23/17 3:51 PM, Moritz Maxeiner wrote:
On Friday, 23 June 2017 at 18:42:55 UTC, Steven Schveighoffer wrote:
On 6/23/17 2:24 PM, Moritz Maxeiner wrote:
I'm all for this syntax, just one spec/implementation question:
If the new contract syntax (formally) shares grammar rules with
assert,
On 06/23/2017 09:02 PM, Boris-Barboris wrote:
https://github.com/Boris-Barboris/daii
You've got bad `@trusted`s:
https://github.com/Boris-Barboris/daii/blob/3e15429a4000494ce61330fb5adcfc700ec1942c/source/closure.d#L108
`_f` may be unsafe. It can't be trusted.
`args` may have unsafe
On Friday, 23 June 2017 at 19:27:56 UTC, Araq wrote:
On Thursday, 22 June 2017 at 11:27:47 UTC, Paulo Pinto wrote:
Java is AOT compiled to native code via Excelsior JET, IBM J9,
IBM Websphere RealTime, JamaicaVM, SubstrateVM, Android ART
and eventually Java 10.
Have you used one of these
On Friday, 23 June 2017 at 19:38:11 UTC, MysticZach wrote:
On Friday, 23 June 2017 at 18:42:55 UTC, Steven Schveighoffer
wrote:
On 6/23/17 2:24 PM, Moritz Maxeiner wrote:
I'm all for this syntax, just one spec/implementation
question:
If the new contract syntax (formally) shares grammar rules
On Friday, 23 June 2017 at 19:03:01 UTC, FoxyBrown wrote:
Hi,
I will be developing some hardware and software that will need
to be portable across a multitude of systems.
At first, I will develop some of the non-specific
infrastructural code base on windows for convenience. These
involve
On Friday, 23 June 2017 at 18:42:55 UTC, Steven Schveighoffer
wrote:
On 6/23/17 2:24 PM, Moritz Maxeiner wrote:
On Friday, 23 June 2017 at 17:31:15 UTC, MysticZach wrote:
[...]
Yeah, my take is that the grammar for `assert`s applies to
the new syntax as well. If the grammar for asserts is
On Friday, 23 June 2017 at 18:42:55 UTC, Steven Schveighoffer
wrote:
On 6/23/17 2:24 PM, Moritz Maxeiner wrote:
I'm all for this syntax, just one spec/implementation question:
If the new contract syntax (formally) shares grammar rules
with assert, won't that cause more work for people who want
On Fri, Jun 23, 2017 at 06:51:13PM +, Anonymouse via Digitalmars-d wrote:
[...]
> Fairly specific, but foreach (member; someStruct.tupleof).
>
> Part of my work on my IRC bot has been to serialise structs into
> configuration files (since std.json was *non-trivial* to deal with),
> and
On Thursday, 22 June 2017 at 11:27:47 UTC, Paulo Pinto wrote:
Java is AOT compiled to native code via Excelsior JET, IBM J9,
IBM Websphere RealTime, JamaicaVM, SubstrateVM, Android ART and
eventually Java 10.
Have you used one of these products? How do they deal with
dynamic class loading?
On 2017-06-22 17:19, JamesD wrote:
I have several utilities I have used in AutoIT, and I'm enjoying
converting these to the D language with the DWT GUI.
vhdCopy is a GUI wrapper for VboxManage.exe to copy vhd and set GUUID.
This version 2 replaces buttons with a GUI menu that is useful as an
On Fri, Jun 23, 2017 at 06:57:57PM +, MysticZach via Digitalmars-d wrote:
> On Friday, 23 June 2017 at 18:20:23 UTC, Moritz Maxeiner wrote:
> > On Friday, 23 June 2017 at 18:03:26 UTC, Timon Gehr wrote:
[...]
> > > Agreed. Implementation:
> > >
On Wednesday, 21 June 2017 at 20:48:52 UTC, ag0aep6g wrote:
On 06/21/2017 09:39 PM, timvol wrote:
size_t calcLength(ubyte ubFuncCode)() if ( ubFuncCode ==
1 )
{
return 10; // More complex calculated value
}
size_t calcLength(ubyte ubFuncCode)() if ( ubFuncCode ==
Hi, I wrote a small library, inspired by atilaneves automem. I
didn't like some things, especially that smart pointers proxied
underlying types, also I wanted class upcasting.
https://github.com/Boris-Barboris/daii
https://code.dlang.org/packages/daii
What do you think about the
Hi,
I will be developing some hardware and software that will need to
be portable across a multitude of systems.
At first, I will develop some of the non-specific infrastructural
code base on windows for convenience. These involve the GUI,
overall structure, etc.
I think will need to move
On Friday, 23 June 2017 at 18:20:23 UTC, Moritz Maxeiner wrote:
On Friday, 23 June 2017 at 18:03:26 UTC, Timon Gehr wrote:
On 23.06.2017 18:21, H. S. Teoh via Digitalmars-d wrote:
[...]
Agreed. Implementation:
https://github.com/dlang/dmd/compare/master...tgehr:contract-syntax
(At most one
On 23.06.2017 06:27, MysticZach wrote:
On Friday, 23 June 2017 at 00:17:23 UTC, Steven Schveighoffer wrote:
We can call that contextual "keyword" result. Doesn't have to be a
keyword, just the implied return value symbol name.
Another problem is that any given contextual reserved identifier
On Thursday, 22 June 2017 at 00:48:25 UTC, Seb wrote:
Hi,
I am currently trying to modernize the D code example roulette
on the dlang.org front page [1]. Hence, I would love to hear
about your favorite feature(s) in D.
Ideas:
- favorite language construct
- favorite code sample
- "only
On 6/23/17 2:24 PM, Moritz Maxeiner wrote:
On Friday, 23 June 2017 at 17:31:15 UTC, MysticZach wrote:
[...]
Yeah, my take is that the grammar for `assert`s applies to the new
syntax as well. If the grammar for asserts is this:
AssertExpression:
assert ( AssertParameters )
... then the
https://issues.dlang.org/show_bug.cgi?id=11012
--- Comment #9 from Alexander ---
I'm not sure about it being a bug, though I was before. I think spec should be
a little more explicit on the difference between function and function pointer
types.
For now, this templates
On Friday, 23 June 2017 at 18:06:34 UTC, Timon Gehr wrote:
Because it cannot be parsed greedily. See:
http://forum.dlang.org/post/beovehhmoxzuoepte...@forum.dlang.org
I see what you're saying. I don't think I really grokked it when
you posted the example yesterday.
And also it is
I'm kinda tempted to offer a pre-packaged compiler download
with my libs and some other useful stuff. PHP has done that
before, with the LAMP packages.
And now that dmd is fully Boost, there's no legal barrier, but
I question if it is really worth it because someone could just
download the
On Friday, 23 June 2017 at 17:33:48 UTC, Suliman wrote:
http://past.code123.org/
I did small paste-bin service for sharing D code. Now it's deep
alpha it's powered by vibed. It's simply works and nothing
more. It's support basic syntax highlighting (after page
refresh) for few language
On Friday, 23 June 2017 at 17:31:15 UTC, MysticZach wrote:
[...]
Yeah, my take is that the grammar for `assert`s applies to the
new syntax as well. If the grammar for asserts is this:
AssertExpression:
assert ( AssertParameters )
... then the grammar for the new syntax is:
InExpression:
On Friday, 23 June 2017 at 18:03:26 UTC, Timon Gehr wrote:
On 23.06.2017 18:21, H. S. Teoh via Digitalmars-d wrote:
[...]
Agreed. Implementation:
https://github.com/dlang/dmd/compare/master...tgehr:contract-syntax
(At most one contract of each type is supported. It is not very
hard to
On Friday, 23 June 2017 at 17:09:18 UTC, Steven Schveighoffer
wrote:
On 6/23/17 11:41 AM, Moritz Maxeiner wrote:
On Friday, 23 June 2017 at 14:53:44 UTC, Steven Schveighoffer
wrote:
On 6/23/17 9:58 AM, Moritz Maxeiner wrote:
out (; globalStateStillValid) { ... }
What's that mean?
On 23.06.2017 19:52, jmh530 wrote:
On Friday, 23 June 2017 at 17:31:15 UTC, MysticZach wrote:
OutExpression:
out ( ; AssertParameters )
out ( Identifier ; AssertParameters )
Why not?
OutExpression:
out ( AssertParameters )
out ( Identifier ; AssertParameters )
Because it cannot
On 23.06.2017 18:21, H. S. Teoh via Digitalmars-d wrote:
On Fri, Jun 23, 2017 at 09:06:59AM +, Solomon E via Digitalmars-d wrote:
[...]
T foo(T)(T x, T y)
in (x > 0, y > 0)
out (r; r > 0)
{
return x % y + 1;
}
Hmm, I like this syntax for out-contracts! It borrows from
On Friday, 23 June 2017 at 17:31:15 UTC, MysticZach wrote:
OutExpression:
out ( ; AssertParameters )
out ( Identifier ; AssertParameters )
Why not?
OutExpression:
out ( AssertParameters )
out ( Identifier ; AssertParameters )
http://past.code123.org/
I did small paste-bin service for sharing D code. Now it's deep
alpha it's powered by vibed. It's simply works and nothing more.
It's support basic syntax highlighting (after page refresh) for
few language besides D.
I hope to finish it in next few days, but you can
On Friday, 23 June 2017 at 16:21:28 UTC, H. S. Teoh wrote:
On Fri, Jun 23, 2017 at 09:06:59AM +, Solomon E via
Digitalmars-d wrote: [...]
T foo(T)(T x, T y)
in (x > 0, y > 0)
out (r; r > 0)
{
return x % y + 1;
}
Hmm, I like this syntax for out-contracts! It borrows from
On Friday, 23 June 2017 at 17:21:58 UTC, jmh530 wrote:
On Friday, 23 June 2017 at 15:48:25 UTC, Russel Winder wrote:
PS We need simple distinct names for Dub the tool and Dub the
repository. Rust has Cargo and crates.io. The trouble is
code.dlang.org doesn't quite roll off the tongue.
On Friday, 23 June 2017 at 15:48:25 UTC, Russel Winder wrote:
PS We need simple distinct names for Dub the tool and Dub the
repository. Rust has Cargo and crates.io. The trouble is
code.dlang.org doesn't quite roll off the tongue.
Some dub/reggae inspired names:
On 06/23/2017 11:48 AM, Russel Winder via Digitalmars-d wrote:
PS We need simple distinct names for Dub the tool and Dub the
repository. Rust has Cargo and crates.io. The trouble is code.dlang.org
doesn't quite roll off the tongue.
"dub" vs "dub repo"
On 6/23/17 12:06 PM, Martin Tschierschke wrote:
You can use the html syntax for the class parameter, the funny/nice
thing is, that mystr can be used directly without "#{}" around.
code(class=mystr) #{line}
works.
Yes, I just found out recently -- when you don't use quotes for an
attribute
On 6/23/17 11:41 AM, Moritz Maxeiner wrote:
On Friday, 23 June 2017 at 14:53:44 UTC, Steven Schveighoffer wrote:
On 6/23/17 9:58 AM, Moritz Maxeiner wrote:
out (; globalStateStillValid) { ... }
What's that mean?
Parenthesisless function call (as function calls are expressions).
OK.
On Friday, 23 June 2017 at 06:41:26 UTC, Bienlein wrote:
Java, Kotlin, C# are still Jit compiled languages, with the
memory footprint to prove it :)
The memory footprint doesn't matter. Those times are OVER :-).
Do you want D to compete in enterprise domain? Of 16 programs
running on my
On Friday, 23 June 2017 at 10:38:23 UTC, Russel Winder wrote:
350 issues, 42 pull requests. I have to admit I am shocked.
https://github.com/dlang/dub/graphs/contributors?from=2015-06-23=2016-06-23=c
https://github.com/dlang/dub/graphs/contributors?from=2016-06-23=2017-06-23=c
Shows that the
On Fri, Jun 23, 2017 at 09:06:59AM +, Solomon E via Digitalmars-d wrote:
[...]
> T foo(T)(T x, T y)
> in (x > 0, y > 0)
> out (r; r > 0)
> {
> return x % y + 1;
> }
Hmm, I like this syntax for out-contracts! It borrows from existing
foreach syntax, so it has some precedence,
https://issues.dlang.org/show_bug.cgi?id=11012
anonymous4 changed:
What|Removed |Added
URL|
On Friday, 23 June 2017 at 06:59:22 UTC, Suliman wrote:
I need to get external variable and make class by it's value
- string mystr = "lng-" ~ language;
- foreach(i, line; arrayOfLines )
li
code.mystr #{line}
I need to get HTML code like this:
some D code
But class
https://issues.dlang.org/show_bug.cgi?id=11012
--- Comment #7 from anonymous4 ---
How it works now:
---
void f(){}
static assert(is(typeof(f)==function));
static assert(is(typeof()==function));
---
line 3: Error: static assert (is(void function() == function)) is false
On Thursday, 22 June 2017 at 09:57:44 UTC, Andre Pany wrote:
This line raises the error:
TestStruct s2 = TestStruct(Reason.FU);
Error: cannot implicitly convert expression ("Fu") of type
Reason to InitialEnum!(Reason)
While this line is working fine:
TestStruct s1 = {reason: Reason.FU};
I
On Fri, 2017-06-23 at 14:20 +0200, Sönke Ludwig via Digitalmars-d
wrote:
> Am 23.06.2017 um 12:38 schrieb Russel Winder via Digitalmars-d:
> > 350 issues, 42 pull requests. I have to admit I am shocked.
> >
>
> It really shows that I have very little time left for DUB at the
> moment.
>
On Thursday, 22 June 2017 at 00:48:25 UTC, Seb wrote:
Before you ask, yes - I want to add a couple of cool examples
to dlang.org (and yep the roulette rotation is currently broken
[2]).
[1]
https://github.com/dlang/dlang.org/pulls?q=is%3Apr+is%3Aopen+label%3A%22Frontpage+example%22
[2]
On Friday, 23 June 2017 at 14:53:44 UTC, Steven Schveighoffer
wrote:
On 6/23/17 9:58 AM, Moritz Maxeiner wrote:
out (; globalStateStillValid) { ... }
What's that mean?
Parenthesisless function call (as function calls are expressions).
https://issues.dlang.org/show_bug.cgi?id=17543
Issue ID: 17543
Summary: __gshared block modifier is ignored by static
variables
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
On Fri, 2017-06-23 at 13:14 +, Wulfklaue via Digitalmars-d wrote:
> On Monday, 19 June 2017 at 16:13:20 UTC, Russel Winder wrote:
> > I'd be more bothered by Kotlin native that Scala native.
>
> Well, Kotlin/Native just came out with version 0.3. And it
> includes Windows support. Take that
On 06/23/2017 04:29 PM, Adam D. Ruppe wrote:
try `new immutable AppendChatCommand` instead of just `new`.
If it complains that it cannot call the mutable constructor, go to the
class definition and add `pure` to the constructor. Should take care of
that error.
With a `pure` constructor,
https://issues.dlang.org/show_bug.cgi?id=17542
Issue ID: 17542
Summary: DSON conversion of enums misses enum name
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
On Friday, 23 June 2017 at 13:43:00 UTC, ag0aep6g wrote:
On 06/23/2017 08:49 AM, Ecstatic Coder wrote:
"Systems programming" may scare users away who think they're
not good enough for that kind of programming.
True.
"General-purpose programming" is a better fit, in my opinion.
In mine
On Friday, 23 June 2017 at 13:29:29 UTC, Ecstatic Coder wrote:
But for the remaining, unfortunately this is not as easy, and
this requires some efforts before being able to develop web or
GUI applications.
I'm kinda tempted to offer a pre-packaged compiler download with
my libs and some
On 6/23/17 9:58 AM, Moritz Maxeiner wrote:
out (; globalStateStillValid) { ... }
What's that mean?
-Steve
On Thu, 2017-06-22 at 18:38 +, Boris-Barboris via Digitalmars-d-
learn wrote:
> […]
>
> Casts are part of the type system. Yes, D type system allows
> invalid operations. It's not the compiler's fault, it's type
> system's fault.
> […]
Well maybe casts should be allowed as they effectively
On Friday, 23 June 2017 at 13:29:29 UTC, Ecstatic Coder wrote:
That's why I'm in favor of adapting some thirdparty librairies
so they become pre-installed standard librairies (std.web,
std.ui, etc).
Will not happen. I read too many threads already where this was
mentioned and it always got
On Friday, 23 June 2017 at 14:07:09 UTC, Ola Fosheim Grøstad
wrote:
On Friday, 23 June 2017 at 11:15:40 UTC, Bienlein wrote:
I have not done any manual memory management at work for the
last 25 years.
But are you doing any programming for the low end of the
hardware spectrum? It has been the
On Friday, 23 June 2017 at 14:29:41 UTC, harakim wrote:
heh. I've been working on this for an hour or so. Right after I
posted, I tried casting it, which worked. Thank you for your
time.
cast works, but `new immutable` with a pure ctor should work
better. (casts are easy to get wrong so best
On Friday, 23 June 2017 at 14:29:40 UTC, Adam D. Ruppe wrote:
On Friday, 23 June 2017 at 14:25:48 UTC, harakim wrote:
immutable(AppendChatCommand) command = new
AppendChatCommand(type, text);
try `new immutable AppendChatCommand` instead of just `new`.
If it complains that it cannot call the
On Friday, 23 June 2017 at 14:25:48 UTC, harakim wrote:
I am building a system where one thread generates commands and
sends them to another thread. The commands will never change
once they are created. I have marked the values immutable, but
I've been struggling to understand the requirements
On Friday, 23 June 2017 at 14:25:48 UTC, harakim wrote:
immutable(AppendChatCommand) command = new
AppendChatCommand(type, text);
try `new immutable AppendChatCommand` instead of just `new`.
If it complains that it cannot call the mutable constructor, go
to the class definition and add
I am building a system where one thread generates commands and
sends them to another thread. The commands will never change once
they are created. I have marked the values immutable, but I've
been struggling to understand the requirements for sharing a
variable across threads.
cannot
On Friday, 23 June 2017 at 13:58:38 UTC, Moritz Maxeiner wrote:
OT: Anyone interested in a DIP for more template constraint
unfulfilled information in a consistent way to contracts (?) :
---
int myFunc(Args...)(Args args)
if (Args.length > 0, "Starving!")
if (Args.length > 1, "Still
On Friday, 23 June 2017 at 13:00:30 UTC, Steven Schveighoffer
wrote:
On 6/23/17 5:06 AM, Solomon E wrote:
What I expected from my impression of existing D syntax was
that something like this might be coming up:
T foo(T)(T x, T y)
in (x > 0, y > 0)
out (r; r > 0)
{
return x % y
On Friday, 23 June 2017 at 13:43:00 UTC, ag0aep6g wrote:
On 06/23/2017 08:49 AM, Ecstatic Coder wrote:
1/ it's not especially obvious that D is also an easy to learn
scripting language.
Ok, I think I understand your goal now.
There's a thing that I'd like to change on the home page, and I
https://issues.dlang.org/show_bug.cgi?id=11012
ZombineDev changed:
What|Removed |Added
Status|RESOLVED|REOPENED
https://issues.dlang.org/show_bug.cgi?id=11012
ZombineDev changed:
What|Removed |Added
CC|
https://issues.dlang.org/show_bug.cgi?id=15708
ZombineDev changed:
What|Removed |Added
CC|
On Friday, 23 June 2017 at 11:15:40 UTC, Bienlein wrote:
I have not done any manual memory management at work for the
last 25 years.
But are you doing any programming for the low end of the hardware
spectrum? It has been the low end hardware limitations that have
the standard for memory
On Friday, 23 June 2017 at 13:31:04 UTC, Petar Kirov [ZombineDev]
wrote:
On Thursday, 22 June 2017 at 09:09:40 UTC, evilrat wrote:
[...]
Hi evilrat. That's unfortunate to hear. I would to suggest a
way forward.
What do you think about joining dlang-community [0] [1]?
That way:
* You remain
On Friday, 23 June 2017 at 13:26:53 UTC, jmh530 wrote:
On Friday, 23 June 2017 at 13:00:30 UTC, Steven Schveighoffer
wrote:
The out contract looks pretty good actually. The in contract,
not as good. That looks like a comma expression. I'd rather
see this be:
in(x > 0)
in(y > 0)
On 06/23/2017 08:49 AM, Ecstatic Coder wrote:
1/ it's not especially obvious that D is also an easy to learn scripting
language.
Ok, I think I understand your goal now.
There's a thing that I'd like to change on the home page, and I think it
aligns with your thoughts: "D is a systems
On Thursday, 22 June 2017 at 09:09:40 UTC, evilrat wrote:
On Sunday, 3 November 2013 at 05:27:24 UTC, evilrat wrote:
https://github.com/evilrat666/directx-d
I'm sorry to say that, but I have to quit the post of DirectX
bindings maintainer. I haven't yet decided on what to do with
dub
https://issues.dlang.org/show_bug.cgi?id=17541
--- Comment #3 from johanenge...@weka.io ---
And in other cases, `pure` is deduced depending on compiler invocation, and is
actually deduced wrong (function is not pure but is deduced `pure`).
--
The issue goes a bit beyond just the marketing.
Somebody posted on Reddit a few days ago, that D can be used
for a lot of different fields. From system programming to web
development etc ... But the reality is a bit different.
If you want web development you need to write your own
framework
On Friday, 23 June 2017 at 13:00:30 UTC, Steven Schveighoffer
wrote:
The out contract looks pretty good actually. The in contract,
not as good. That looks like a comma expression. I'd rather see
this be:
in(x > 0)
in(y > 0)
or
in(x > 0 && y > 0)
In this case, we have
On Monday, 19 June 2017 at 16:13:20 UTC, Russel Winder wrote:
I'd be more bothered by Kotlin native that Scala native.
Well, Kotlin/Native just came out with version 0.3. And it
includes Windows support. Take that Apple/Swift ;)
Its impressive how fast things are being developer by
https://issues.dlang.org/show_bug.cgi?id=16640
RazvanN changed:
What|Removed |Added
CC|
1 - 100 of 157 matches
Mail list logo