On 22 February 2012 04:45, Dmitry Olshansky dmitry.o...@gmail.com wrote:
On 21.02.2012 7:34, James Miller wrote:
On 20 February 2012 21:34, Dmitry Olshanskydmitry.o...@gmail.com wrote:
08.02.2012 13:07, James Miller пишет:
Hi,
I am using std.regex and using the named matches. I would
On 22 February 2012 17:01, Andrej Mitrovic andrej.mitrov...@gmail.com wrote:
class Foo
{
this(int) inout
{ }
Foo makeFoo() { return new Foo(1); }
}
void main() { }
test.d(8): Error: cannot implicitly convert expression (new Foo(1)) of
type inout(Foo) to test.Foo
Is this a
need to sacrifice portability for
aesthetics, otherwise we're still stuck in the early nineties...
I'm pretty sure that making a website work in all browsers and all
configurations is a punishment in hell for IE developers...
--
James Miller
make a lot more sense with the compiler as a library.
Exactly. We basically need Clang for D, preferably written in D.
--
/Jacob Carlborg
libclang is awesome, so libdmd should be /more/ awesome, right?
--
James Miller
, been a pleasant platform to develop
lower-level code for, the default console hasn't been updated in
decades (I know that powershell exists), and windows seems to act as
if you either use Visual Studio (and .NET) or you aren't a real
programmer...
--
James Miller
).
--
James Miller
On 21 February 2012 12:22, Walter Bright newshou...@digitalmars.com wrote:
On 2/20/2012 3:28 AM, Manu wrote:
Even size_t is often
broken in C. I have worked on 64bit systems with 32bit pointers where
size_t was
still 64bit, but ptrdiff_t was 32bit (I think PS3 is like this, but maybe
my
On 20 February 2012 21:34, Dmitry Olshansky dmitry.o...@gmail.com wrote:
08.02.2012 13:07, James Miller пишет:
Hi,
I am using std.regex and using the named matches. I would like to be
able to get at the names that have matched, since this is library
code.
e.g.
auto m = match(test/2
On 18 February 2012 05:30, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Friday, February 17, 2012 14:44:42 Mars wrote:
On Friday, 17 February 2012 at 13:33:25 UTC, James Miller wrote:
AAs don't keep the key order, so when you delete something out
of it,
what ever system iterates
cred, I picked mine because it allows me
to work around my disabilities.
For the record, while I didn't track it, I estimate that I made about
an average of 1 mistake per word typing this message, I mis-typed
track 4 times in this sentence.
--
James Miller
, but it would be very nice to have something like this
for D. Even if I have to start the project myself.
It doesn't necessarily have to be part of the compiler, like with
clang, but an external service would be awesome.
Any tips, hints or ranting dismissals are welcome.
Thanks
James Miller
On 20 February 2012 13:05, Bernard Helyer b.hel...@gmail.com wrote:
Maybe when you learn to type like an adult people will listen to you?
Its also worth mentioning that most structures are simple enough that
for 99% of purposes, a homebrew implementation is fine. I was taught
how to implement a
dependencies,
but you can apply that to many things, and if you treat exceptions as
part of the API, then changing an exception can be considered an API
change and therefore something to be done with care.
James Miller
of sites every day. I don't normally need an explicit
queue/stack/priority queue.
James Miller
On 20 February 2012 16:43, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Mon, Feb 20, 2012 at 04:19:10PM +1300, James Miller wrote:
[...]
My feedback is that for most people's purposes, associative arrays and
arrays (dynamic and static) are fine. PHP doesn't have a well-used
collections library
I use vim, and I find that just vanilla vim does the job fine for me.
I don't tend to use autocomplete unless its really smart (like using
clang-complete for C/C++), and I should probably grab the latest D
syntax file. mostly just judicious use of / and numbergg gets me
most places.
already do.
--
James Miller
of them more as
logical conjuction and disjunction, they are predicate operators.
And if we want to get into proper symbols for logic, we should be
using ∧, ∨, ⊕, ¬ for and, or, exclusive or and not, since those are
the proper boolean algebra symbols.
--
James Miller
spare time. Im used to frequent syntax
switching, even if they might all be C-style.
Ultimately, the smaller the official syntax is, the better, just look at
lisp.
James Miller -- On The Go
AAs don't keep the key order, so when you delete something out of it,
what ever system iterates to the next pointer gets confused. Its
generally a bad idea to modify an array as you loop through it.
--
James Miller
seems like a good solution to you will probably upset
somebody else. There is a way to deal with this problem, and its not
even difficult to do, you seem to be a man in search of a problem.
--
James Miller
is supposed to be friendly to C/C++ programmers, so
`import` behaves, on the surface, like `#include`.
If you want to only use the fully qualified names, just use `static
import`, as far as I can tell, that is exactly what you want.
--
James Miller
The first problem is trivial, solving the second one in a type safe way
would require adding parametric polymorphism to D. (Which I'd love to have!)
Can't you emulate type-safe parametric polymorphism with template constraints?
with Teoh that it might make it a bit more difficult to understand
code, but to some extent that is partially a documentation problem,
which is always an issue, no matter what.
--
James Miller
the
server and for user input at the same time, meaning that a slow server
doesn't break your client or render it unusable. If the code works for
you, then its probably fine.
James Miller
On 15 February 2012 12:12, H. S. Teoh hst...@quickfur.ath.cx wrote:
On Tue, Feb 14, 2012 at 11:47:52PM +0100, Timon Gehr wrote:
[...]
It does not hurt at all if your code base is more flexible than
necessary.
[...]
This needs to be taken in moderation, though.
I've had to work with code
On 13 February 2012 21:44, Adam adaprogram...@usenet.net wrote:
a zillion.. any amount. just bring her back. I am not vacuous, I will get
it. Now you bring her back, that is an order
Adam, what is your purpose here? You have done little but post
irrelevant nonsense on threads. I understand that
I find that dynamic typing is useful sometimes and static typing other
times. Certainly dynamic (duck) typing is useful for scripts and
similar, and static typing is certainly better for writing code that
is especially picky about its values. I liken it to the way I write
code in PHP, the
Somewhat off topic, but Alf, I have noticed you posting a few times, I
think newbie questions are better suited to the digitalmars.D.learn
mailing list.
Thanks
James Miller
out backends at runtime. The docs need work, but docs always need work
:P.
It might not mean much, but this gets my approval.
James Miller
it is to implement. Better than doubling up a keyword, I
always found that confusing in C/C++ with its long long int and
similar constructs.
James Miller
On 11 February 2012 10:45, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Friday, February 10, 2012 13:32:56 Marco Leise wrote:
I know that feeling. I had no exposure to functional programming and
options like chain never come to my head. Although map is a concept that
I made friends with
On 14 February 2012 06:25, Timon Gehr timon.g...@gmx.ch wrote:
On 02/13/2012 03:19 PM, James Miller wrote:
On 11 February 2012 10:45, Jonathan M Davisjmdavisp...@gmx.com wrote:
On Friday, February 10, 2012 13:32:56 Marco Leise wrote:
I know that feeling. I had no exposure to functional
On 14 February 2012 12:26, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Monday, February 13, 2012 15:12:15 H. S. Teoh wrote:
I discovered something really cool today, and I thought I'd share it
with my fellow learners:
The unittest block is used for inserting unit tests that are executed at
On 14 February 2012 12:45, Ali Çehreli acehr...@yahoo.com wrote:
On 02/13/2012 03:34 PM, James Miller wrote:
Saying it is not quicksort as much as it may conceptually resemble
quicksort is kinda odd, its like saying it is not a car, as much as
it may conceptually resemble a car because
I wish I had this when I begun. My first usage of D implyed a compilation of
ldc, then gdc (the only one that worked at the time on my plateform) and
patching phobos by myself (reminder, it was the first time I used that
language, not to mention it was pretty harsh and I think most people
that you feel you can't compete? i am really confused.
Please, remove yourself from this mailing list before you do yourself an injury.
Thanks
James Miller
Concerned
I posted something similar learn, but since this is a request,
not a question I'm going to reiterate it here.
After looking through std.regex, it would be useful if there was
a way to get the names of the named matches from the Captures.
e.g. R[] names = m.getNames(). With the idea being that
;
or something similar. I've looked at the library and I can't find
anything of the sort, and you can't even use `foreach` to get at them
that way, I'm guessing because you can have both integer and string
indexes for the matches.
Thanks
James Miller
On Tuesday, 7 February 2012 at 19:27:46 UTC, bls wrote:
You know it, web stuff documentation is a weak point.
Yeah, I know.
looks very interesting ... so a real world sample app would be nice..
The closest i have is a little blog like thing that I started
and haven't worked on since.
: true
So if just just need an array of bytes and the `char' semantics are
unimportant, then you can just use a ubyte instead. However Timon is
correct that there should probably be a narrow string version of
`reverse'.
James Miller
It is also worth noting that the reason delegates are not eligible for
thread spawn is that delegates hold references from outside their
definition. This means that delegates can hold references to data that
outside their thread, thus breaking the rule that all data is
thread-local unless
On 5 February 2012 09:42, Vladimir Panteleev
vladi...@thecybershadow.net wrote:
This works quite well:
https://www.google.com/search?q=%22d+programming%22+fastcgi
I like how my library is about 7th :D
Back on topic: I have now written bindings for deimos.fcgi as
suggested, I'm currently
Hello everybody,
Before I essentially spam everybody, I'll introduce myself. I am James
Miller, and English developer living in New Zealand, I started using D
about 2 months ago and am currently working on a large project using
it.
As part of that project, I developed a FastCGI library (mostly
On Feb 4, 2012 5:38 AM, Adam D. Ruppe destructiona...@gmail.com wrote:
D FCGI, a FastCGI library for D.
I've also done something similar:
https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff
check out cgi.d. If you compile with -version=fastcgi, it
uses
On 4 February 2012 14:07, Nick_B nick.nospambarbal...@gmail.com wrote:
On 4/02/2012 1:31 a.m., James Miller wrote:
Before I essentially spam everybody, I'll introduce myself. I am James
Miller, and English developer living in New Zealand, I started using D
about 2 months ago and am currently
to any centralized project repository, which
makes discovery a nightmare. Many people do not want to join a mailing
list or ask in IRC just to find if a library or program exists.
--
James Miller
201 - 247 of 247 matches
Mail list logo