Nick Sabalausky a@a.a wrote in message
news:iqd84f$2bv3$1...@digitalmars.com...
Nick Sabalausky a@a.a wrote in message
news:iq9ujn$111t$1...@digitalmars.com...
The only problem I'm having now (aside from the fact that I haven't
attempted to deal with the other shared host server yet
Adam D. Ruppe destructiona...@gmail.com wrote in message
news:iqbjs4$2vrm$1...@digitalmars.com...
Nick Sabalausky wrote:
I've actually come close to making my own IM client out of
frustration, but libpidgin was a pain
Hah, I started one as well, with only aim support. It actually kinda
Nick Sabalausky a@a.a wrote in message
news:iq9ujn$111t$1...@digitalmars.com...
The only problem I'm having now (aside from the fact that I haven't
attempted to deal with the other shared host server yet - the debian one
from the horrible ipower company), is that CentOS 4.2 (or maybe it's
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.80.1304923988.14074.digitalmars-d-le...@puremagic.com...
I could look at writing an article on moving from std.date to
std.datetime, I
suppose. We already have an article contest going, and it would make sense
to
put such
Nick Sabalausky a@a.a wrote in message
news:iq6159$q3q$1...@digitalmars.com...
Nick Sabalausky a@a.a wrote in message
news:iq60qt$pm0$1...@digitalmars.com...
I downloaded 4.2 (picked pretty much at random), installed it in
VirtualBox, compiled a trivial test C program in the included GCC
Adam D. Ruppe destructiona...@gmail.com wrote in message
news:iqadbi$m16$1...@digitalmars.com...
Nick Sabalausky wrote:
Do we know what that switch is for?
--no-warn-search-mismatch
Normally ld will give a warning if it finds an incompatible library
during a library search. This option
Andrew Wiley wiley.andre...@gmail.com wrote in message
news:mailman.96.1305003352.14074.digitalmars-d-le...@puremagic.com...
I run Arch/Gnome in Virtualbox and get reasonable performance. There's
some
menu lag, but it's not significant enough to bother me too much. It may
just
be that my
Nick Sabalausky a@a.a wrote in message
news:iq2g72$ngp$1...@digitalmars.com...
Aggg!!! God damnnit, I officially fucking hate linux now... (not that
I'm a win, mac or bsd fan, but whatever...)
I temporarily gave up trying to actually get ahold of an old distro, so I
tried the other
Nick Sabalausky a@a.a wrote in message
news:iq60qt$pm0$1...@digitalmars.com...
I downloaded 4.2 (picked pretty much at random), installed it in
VirtualBox, compiled a trivial test C program in the included GCC,
uploaded that to the server, and it worked! :)
Actually, I did have to remove
Adam D. Ruppe destructiona...@gmail.com wrote in message
news:iq6osh$25di$1...@digitalmars.com...
Nick Sabalausky wrote:
Actually, I did have to remove the HTTP status code output from my
little hello world cgi test in forder for Apache to not throw up a
500.
HTTP status is normally done
Jacob Carlborg d...@me.com wrote in message
news:iq6llk$20ch$1...@digitalmars.com...
On 2011-05-08 19:50, Jacob Carlborg wrote:
On 2011-04-29 22:02, Nick Sabalausky wrote:
I'm having a rediculously hard time trying to find a CentOS 3
installation
disc image (or any other version before 5.6
Spacen Jasset spacenjas...@yahoo.co.uk wrote in message
news:iq69q1$1ack$1...@digitalmars.com...
It should work,but again is depends what your target platform is. It's
quite important that - Even on windows. At the company I am now
contracting for we compile the software agents using visual
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.74.1304905547.14074.digitalmars-d-le...@puremagic.com...
On 2011-05-08 17:46, Adam D. Ruppe wrote:
I decided to update my compiler today, and regret it for a lot of
reasons, but meh.
One of the things is std.datetime. A lot
Nick Sabalausky a@a.a wrote in message
news:ipf5pg$j80$1...@digitalmars.com...
Spacen Jasset spacenjas...@yahoo.co.uk wrote in message
news:ipe1ar$1e1f$1...@digitalmars.com...
I don't know about any of that. All I say is software was built on Centos
3 and it runs on the then company I
bearophile bearophileh...@lycos.com wrote in message
news:ipq6bd$2211$1...@digitalmars.com...
This gives me compilation errors, is this a bug, or is my code wrong?
import std.stdio;
void main() {
string[char] tab = ['e': red, 'b': blue];
string r;
foreach (c; aba) {
// if
Spacen Jasset spacenjas...@yahoo.co.uk wrote in message
news:ipe1ar$1e1f$1...@digitalmars.com...
I don't know about any of that. All I say is software was built on Centos
3 and it runs on the then company I was working for supported platforms.
Which is redhat 3,4,5 + and Suse 9.something +
Alexander aldem+dm...@nk7.net wrote in message
news:ipfhnu$194o$1...@digitalmars.com...
On 29.04.2011 22:02, Nick Sabalausky wrote:
I had been shying away from Alexander's suggestion of uClibc because
uClibc's website says it sacrifices speed for size, and because it looks
like a royal pain
Mike Wey mike-...@example.com wrote in message
news:ipca9t$tml$1...@digitalmars.com...
On 04/27/2011 10:40 PM, Nick Sabalausky wrote:
1. Main server: I googled for ways to find the distro and version, and
most
didn't work (I think my SSH access is sandboxed.) But I was able to get
Kai Meyer k...@unixlords.com wrote in message
news:ip9bro$1lak$1...@digitalmars.com...
On 04/26/2011 02:28 PM, Nick Sabalausky wrote:
Ok, so I guess statically linking against the stuff isn't the way to go,
and
apparently DLL hell is worse on linux. Sooo...What do I do?
In the other thread
Spacen Jasset spacenjas...@yahoo.co.uk wrote in message
news:ip9n5d$27je$1...@digitalmars.com...
On 27/04/2011 18:51, Nick Sabalausky wrote:
Kai Meyerk...@unixlords.com wrote in message
news:ip9bro$1lak$1...@digitalmars.com...
Can you backup, and help me understand what the first problem
Nick Sabalausky a@a.a wrote in message
news:ip9va1$2lbe$1...@digitalmars.com...
Spacen Jasset spacenjas...@yahoo.co.uk wrote in message
news:ip9n5d$27je$1...@digitalmars.com...
try lsb_release for this, if you aren't sure (and it's available as a
command)
jason@ionrift:~$ lsb_release
Robert Clipsham rob...@octarineparrot.com wrote in message
news:ip623p$23in$1...@digitalmars.com...
On 26/04/2011 00:05, Nick Sabalausky wrote:
Thanks. How would I statically link against libc?
The way to do this with C is to pass -static to gcc, and I recall doing
something similar
On Linux, how do I get DMD to statically link against the necessary system
libs like libc?
Someone suggested trying -L-static, but that just gives me this:
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
--- errorlevel 1
Ok, so I guess statically linking against the stuff isn't the way to go, and
apparently DLL hell is worse on linux. Sooo...What do I do?
In the other thread, Spacen said: The way to do this is to link against the
oldest libc you need to
support, thus making the binaries forward compatible
I
Andrej Mitrovic n...@none.none wrote in message
news:ip7phj$28v5$1...@digitalmars.com...
E.g.:
void main()
{
char[10] blue = blue ;
assert(blue == blue);
}
Obviously these two are different, but what function can I use to compare
strings in situations where whitespace is the
Andrej Mitrovic n...@none.none wrote in message
news:ip7pqt$29hc$1...@digitalmars.com...
Nick Sabalausky Wrote:
Andrej Mitrovic n...@none.none wrote in message
news:ip7phj$28v5$1...@digitalmars.com...
E.g.:
void main()
{
char[10] blue = blue ;
assert(blue == blue
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.3694.1303869505.4748.digitalmars-d-le...@puremagic.com...
Andrej Mitrovic n...@none.none wrote in message
news:ip7pqt$29hc$1...@digitalmars.com...
Nick Sabalausky Wrote:
Andrej Mitrovic n...@none.none wrote in message
I've made a little test CGI app:
import std.conv;
import std.stdio;
void main()
{
auto content = biHello world/i/b;
auto headers =
`HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Length: `~to!string(content.length);
while(readln().length 1) {}
writeln(headers);
writeln();
Robert Clipsham rob...@octarineparrot.com wrote in message
news:ip4nhc$2mdp$1...@digitalmars.com...
On 25/04/2011 21:38, Nick Sabalausky wrote:
Works on Windows command line and through IIS. And it works on my Kubuntu
10.6 command line. But if I copy the executable from my Kubuntu box to my
Is the makefile supposed to work out-of-the-box, or is it expected that it
be edited first? Because when I do make -f win32.mak form the src dir I
just get Error: '\dm\bin\dmc' not found. Same (exact same) result if I do
make -f win32.mak D=path_to_parent_of_dm.
I know I can just hack the
Like the subject says. I try to use the makefile, but I keep getting this:
Error on line 76: expecting target : dependencies
My understanding of hash tables is that they allocate a fixed size array and
map keys to indicies within the range 0..predefined_length_of_the_AA.
So I've been wondering, how many elements do D's built-in AAs have? And
what's the content of each one, just a single pointer?
spir denis.s...@gmail.com wrote in message
news:mailman.2909.1301443345.4748.digitalmars-d-le...@puremagic.com...
On 03/30/2011 01:24 AM, Nick Sabalausky wrote:
My understanding of hash tables is that they allocate a fixed size array
and
map keys to indicies within the range 0
I haven't been following the $/__dollar/opDollar/etc chronicles very
closely, and I can't find the answer in the docs, but I have simple
question:
Suppose I have this:
---
class Foo
{
int[] data;
this(int[] data)
{
this.data = data;
}
Regan Heath re...@netmail.co.nz wrote in message
news:op.vswbv8qj54x...@puck.auriga.bhead.co.uk...
On Wed, 23 Mar 2011 21:16:02 -, Jonathan M Davis jmdavisp...@gmx.com
wrote:
There are tasks for which you need to be able to lex and parse D code.
To 100% correctly remove unit tests would
Jonathan M Davis jmdavisp...@gmx.com wrote in message
news:mailman.2700.1300915109.4748.digitalmars-d-le...@puremagic.com...
On 3/23/11, Jonathan M Davis jmdavisp...@gmx.com wrote:
That would require a full-blown D lexer and parser.
- Jonathan M Davis
Isn't DDMD written in D? I'm not
Tomek Sowiñski j...@ask.me wrote in message
news:20110309225011.3e9e1d3b@Las-Miodowy...
Nick Sabalausky napisa³:
Is there a way to get the fully-qualified name of an identifier without
doing demange( mangledName!(foo) )?
Heh, looks like there isn't. It may be worth filing an enhancement
Ali Çehreli acehr...@yahoo.com wrote in message
news:il5pge$nrr$1...@digitalmars.com...
On 03/08/2011 08:24 AM, Wilfried Kirschenmann wrote:
Hi,
When running the following file:
#!../dmd2/linux/bin/rdmd -unittest
import std.string, std.traits;
void main(string[] args){
bool test
In D2, if you do this:
void foo(char[] key)
{
bool[char[]] aa;
aa[key] = true;
}
Does that last line allocate a duplicate of key's data?
Lars T. Kyllingstad public@kyllingen.NOSPAMnet wrote in message
news:iknfsh$13ga$1...@digitalmars.com...
On Wed, 02 Mar 2011 13:35:11 +0100, Magnus Lie Hetland wrote:
First question: I just noticed that writefln(%a, 1.2) writes
0x1.3p+0, while writeln(format(%a, 1.2)) (that is,
Simon s.d.hamm...@gmail.com wrote in message
news:ijrdif$1nn6$1...@digitalmars.com...
On 20/02/2011 14:59, d coder wrote:
Greetings
I tried to initialize a struct member with a function pointer, and
found that DMD2 did not like it. Are not function pointers compile
time constants? And why
Magnus Lie Hetland mag...@hetland.org wrote in message
news:ijrm9q$259n$1...@digitalmars.com...
On 2011-02-19 22:25:31 +0100, Nick Sabalausky said:
[snip]
Unfortunately, rdmd doesn't seem to have gotten much attention lately.
I've had a few patches for it sitting in bugzilla for a number
Nick Sabalausky a@a.a wrote in message
news:ijs1vp$3b3$1...@digitalmars.com...
Magnus Lie Hetland mag...@hetland.org wrote in message
news:ijrm9q$259n$1...@digitalmars.com...
On 2011-02-19 22:25:31 +0100, Nick Sabalausky said:
[snip]
Unfortunately, rdmd doesn't seem to have gotten much
Magnus Lie Hetland mag...@hetland.org wrote in message
news:ijohel$960$1...@digitalmars.com...
I'm sure I can fix this myself -- but I'm guessing there must be a more
recent version of the rdmd sources somewhere, assuming that the binary in
the distribution was compiled with dmd 2.052...?
%u wfunct...@hotmail.com wrote in message
news:ij3la9$t53$1...@digitalmars.com...
The problem is that it _is_ ambiguous what rule to apply. To me, just
because
static arrays and associative arrays happen to have similar _looks_
doesn't make
parsing them context-free -- they're defined
Anyone know what DMD/OPTLINK's default stack size on windows is? Or how to
find out?
Also, I don't suppose there's a way to give a linker flag to DMD that it'll
simply ignore on non-Windows platforms, is there?
---
Not sent from an iPhone.
%u wfunct...@hotmail.com wrote in message
news:ij3la9$t53$1...@digitalmars.com...
Again, just because the AST's _happen_ to _look_ the same for static and
associative arrays, does that mean that this makes D context-free?
Grammar is *just* about how it *looks*, not what it means.
The
Adam Cigánek adam.ciga...@gmail.com wrote in message
news:mailman.12.1288206056.21107.digitalmars-d-le...@puremagic.com...
Hello,
Is there a way to get a fully qualified name of an identifier as a
string during compile time? __traits(identifier) returns only
unqualified name.
You could try
Andrej Mitrovic n...@none.com wrote in message
news:i981a0$i6...@digitalmars.com...
Hey,
I've been looking for a D2 parser.. there seems to be a few D1 lexers,
parsers, and even some minimal semantic analysis tools but I can't find
much of anything for D2. Perhaps Goldie will be D2
Graham Nicholls gra...@rockcons.co.uk wrote in message
news:i6t9ig$1ff...@digitalmars.com...
I'm writing a program to take a file and convert it into a binary format
which
matches the format produced by a system which we use. If I get it right,
this
will allow me to replay the file into
BCS n...@anon.com wrote in message
news:a6268ff1c0308cd20c34c198...@news.digitalmars.com...
Hello Andrej,
Yeah but using -of creates an executable in the directory I provide.
RDMD is supossed to be used with hiding the executable in a temp dir,
afaik.
So it's hashing at play, ok. Just
On Mon, Sep 13, 2010 at 8:42 AM, Nick Sabalausky a...@a.a wrote:
I also like to use RDMD as an alternate to rebuild/xfbuild (especially
since
xfbuild's been giving me trouble since I moved to D2).
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:mailman.200.1284394076.858
Ingrater c...@benjamin-thaut.de wrote in message
news:i6irfq$su...@digitalmars.com...
Are there active D-Communities besides the official D forums here on
digitalmars.com? Everything I found so far is pretty outdated with the
latest
news dating back 2 or more years. Is most of the
I'm outputting some stuff to stdout with the write* functions, but with what
I'm doing at the moment I need complete control over each byte that gets
output. On windows, write auto-converts \n to \r\n, which is normally good,
but this time I need to get around that and output it just as-is. How
Andrej Mitrovic n...@none.none wrote in message
news:i6jc5g$1p2...@digitalmars.com...
Just a quick question, why does the map file have a long name like so:
file_test-d-40DA973DB4C6AD075993AB5CD9866DDE.map ?
Because you're using rdmd and not using -of.
rdmd comes up with an executable
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:mailman.179.1284322385.858.digitalmars-d-le...@puremagic.com...
Have you tried using rawWrite ? There's a unittest in the definition
which looks like something you need:
unittest
{
auto f = File(deleteme, w);
Jacob Carlborg d...@me.com wrote in message
news:i5t61q$2j7...@digitalmars.com...
If you're not going to modify the content of the array I think this will
work:
void foo (T) (const(T)[] collection, T elem) {}
This will allow both mutable, immutable and const arrays. But it will not
let
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vitle0kgeav...@localhost.localdomain...
On Thu, 09 Sep 2010 18:29:55 -0400, Nick Sabalausky a...@a.a wrote:
Maybe the OS is just allowing me to use the wrong file descriptor?
OK, after downloading the latest dmd, testing your
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vipr20xfeav...@localhost.localdomain...
On Tue, 07 Sep 2010 16:51:48 -0400, Nick Sabalausky a...@a.a wrote:
Ah cool, looking forward to it. I was just about ready to launch into a
bunch of std.process improvements myself
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vir82cineav...@localhost.localdomain...
On Thu, 09 Sep 2010 16:25:44 -0400, Nick Sabalausky a...@a.a wrote:
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vipr20xfeav...@localhost.localdomain...
On Tue, 07
Is there some way, maybe with __traits, to get the name of the current
module?
Kagamin s...@here.lot wrote in message
news:i660qi$nu...@digitalmars.com...
Nick Sabalausky Wrote:
Does anyone who's done this sort of thing in D before, on Win or Lin,
know
of anything else in particular to be aware of?
There's no fork on windows. If you want a multithreaded server, it's
Nick Sabalausky a...@a.a wrote in message
news:i66oia$25s...@digitalmars.com...
I've tried all sorts of stuff and looked all over, but I'm completely at a
loss. How do I link in a static lib on the command line?
And I don't mean with C or anything like that, just ordinary D.
type main.d
This may be a stupid question:
Does std.socket encorporate or replace pipe usage? Ie, if I'm going to do
something along the lines of (psuedo-code):
auto parentToChild = pipe();
auto childToParent = pipe();
if(fork())
{
// talk to other process
}
else
{
// talk to other process
}
Is
In D1 I did this sort of thing a fair amount:
void foo(T)(T[] collection, T elem)
{
// Blah, whatever
}
Worked for any of the string types, worked for any array, or anything with
the appropriate opIndexes, and for all I know there may be some improvement
that could still be made. But of
Nick Sabalausky a...@a.a wrote in message
news:i5su5e$23m...@digitalmars.com...
In D1 I did this sort of thing a fair amount:
void foo(T)(T[] collection, T elem)
{
// Blah, whatever
}
Worked for any of the string types, worked for any array, or anything with
the appropriate opIndexes
Is there a way to get stack traces for exceptions on Phobos2? For either
Windows (preferably), or for Linux.
---
Not sent from an iPhone.
Nick Sabalausky a...@a.a wrote in message
news:i5ufqs$1v2...@digitalmars.com...
Is there a way to get stack traces for exceptions on Phobos2? For either
Windows (preferably), or for Linux.
Oops, sorry, I completely forgot I asked the exact same thing here little
more than a month ago
Jonathan M Davis jmdavisp...@gmail.com wrote in message
news:mailman.95.1283646171.858.digitalmars-d-le...@puremagic.com...
On Saturday 04 September 2010 15:14:30 Nick Sabalausky wrote:
Nick Sabalausky a...@a.a wrote in message
news:i5ufqs$1v2...@digitalmars.com...
Is there a way to get
Jonathan M Davis jmdavisp...@gmail.com wrote in message
news:mailman.96.1283648486.858.digitalmars-d-le...@puremagic.com...
On Saturday 04 September 2010 17:25:23 Nick Sabalausky wrote:
Didn't work for me on Linux/2.048.
I'm not sure what to tell you. I'm using dmd 2.048 on linux, and if I
Nick Sabalausky a...@a.a wrote in message
news:i5v7gv$22...@digitalmars.com...
Jonathan M Davis jmdavisp...@gmail.com wrote in message
news:mailman.96.1283648486.858.digitalmars-d-le...@puremagic.com...
On Saturday 04 September 2010 17:25:23 Nick Sabalausky wrote:
Didn't work for me on Linux
torhu n...@spam.invalid wrote in message
news:i5cqgo$37...@digitalmars.com...
On 29.08.2010 07:06, Nick Sabalausky wrote:
ubyte myByte = 0x09;
writef(%%%.2X, myByte);
writef(%%%02X, myByte);
On codepad.org (DMD 1.026 last time I checked), this prints this:
%09%09
So it's probably a bug
Nick Sabalausky a...@a.a wrote in message
news:i5cnrn$30h...@digitalmars.com...
I'm having trouble understanding the docs on this. From what I could tell,
it seemed like both of these should work:
writef(%.2X, myByte);
writef(%02X, myByte);
But both of them just simply print the format
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:i4rnl4$239...@digitalmars.com...
Well then I think I've found some new bugs in RDMD xfbuild:
Files:
root/main.d
root/socket.d
main.d:
module main;
import alt.socket;
void main()
{
foo();
}
socket.d:
module
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:i4p4tn$2sd...@digitalmars.com...
Is anyone having success using RDMD on Windows? I keep getting back this
kind of nonsense:
.\widget.d(2): Error: module io from file acme\goodies\io.d conflicts with
another module io from
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:i4pgdp$1ba...@digitalmars.com...
Thanks for all the help, Nick. But I don't see your attachment. I can't
see it with the web-news reader, and on gmane there's garbled text at the
end, something like begin 666 rdmdAlt.d
Andrej Mitrovic andrej.mitrov...@gmail.com wrote in message
news:i4pkg0$2a5...@digitalmars.com...
Man, I have no idea what's going on. I was trying out building with
xfbuild, and I keep getting different results on each attempted build:
[snip]
Geeez.. What am I supposed to use
Steven Schveighoffer schvei...@yahoo.com wrote in message
news:op.vhl46mdneav...@localhost.localdomain...
Changes are afoot to std.process, we recently got a blocker fixed (not yet
in svn, but someone submitted a correct patch)
Issue #?
Stanislav Blinov stanislav.bli...@gmail.com wrote in message
news:i4era1$t6...@digitalmars.com...
Hi,
I wanted to test if anyone's having trouble reading my messages. Reason
being, I looked into newsgroup today on my home machine and saw some very
weird thing happening to my messages. I
jicman cabre...@_wrc.xerox.com wrote in message
news:i4cn8h$2vt...@digitalmars.com...
Greetings.
I have this program,
import std.stdio;
import juno.base.text;
import std.file;
import std.windows.charset;
import std.utf;
int main(char[][] args)
{
char[] ansi = rc:\ansi.txt;
char[]
Is there a way to get stack traces on exceptions in D2?
I could have sworn I saw Andrei say somewhere a while ago that Phobos2
supported posix-style indexed format specifiers. From what I could figure
out from some searching that on the web, those are like %1$s. But this
gives me a FormatException:
%1$s.format(A);
And this works fine:
Nick Sabalausky a...@a.a wrote in message
news:i2rbht$22v...@digitalmars.com...
Rory Mcguire rjmcgu...@gm_no_ail.com wrote in message
news:i2rafu$20l...@digitalmars.com...
Nick Sabalausky wrote:
Is there a way to get stack traces on exceptions in D2?
What OS.
I'm on linux and I get stack
Jacob Carlborg d...@me.com wrote in message
news:i2sfk4$185...@digitalmars.com...
On 2010-07-29 13:44, Don wrote:
Nick Sabalausky wrote:
Is there a way to get stack traces on exceptions in D2?
It's not yet implemented on Windows. Mainly because Sean hasn't had
enough free time.
Does
Jonathan M Davis jmdavisp...@gmail.com wrote in message
news:mailman.49.1280424679.13841.digitalmars-d-le...@puremagic.com...
On Thursday, July 29, 2010 00:54:27 Nick Sabalausky wrote:
I could have sworn I saw Andrei say somewhere a while ago that Phobos2
supported posix-style indexed format
Nick Sabalausky a...@a.a wrote in message
news:i2pvvi$2g8...@digitalmars.com...
bearophile bearophileh...@lycos.com wrote in message
news:i2p4iq$p...@digitalmars.com...
Nick Sabalausky:
That's because my original example accidentally made Foo an
uninstantiated
class template, so
Don nos...@nospam.com wrote in message
news:i2q0un$2hu...@digitalmars.com...
Nick Sabalausky wrote:
It still leaves the question though, Why isn't that working in D2? Bug
or legitimate reason?.
Jonathan suggested it was deliberate because of the hidden this
parameter, but I'm
Trying to convert some D1 code to D2:
On 2.047, I'm trying to do this:
import std.string;
void foo(string str)
{
str =
std.algorithm.map!(
(char a) { return inPattern(a, [digits, letters])? a : '_'; }
)(str);
}
And I'm getting:
delegate std.algorithm.__dgliteral1 cannot access frame of
Nick Sabalausky a...@a.a wrote in message
news:i2no7g$eu...@digitalmars.com...
Trying to convert some D1 code to D2:
On 2.047, I'm trying to do this:
import std.string;
void foo(string str)
{
str =
std.algorithm.map!(
(char a) { return inPattern(a, [digits, letters
In converting some D1 code to D2, I noticed this doesn't seem to work
anymore:
module mymodule;
class Foo()
{
void bar(string s) {...}
void foo()
{
string str = hello;
str.bar();
}
}
In D1 that works fine, but in D2 (2.047) it complains that it can't find
Nick Sabalausky a...@a.a wrote in message
news:i2o9ev$1e4...@digitalmars.com...
bearophile bearophileh...@lycos.com wrote in message
news:i2nqs5$js...@digitalmars.com...
It seems to work, on 2.042, and on dmd 2.047:
http://ideone.com/dcsK3
Bye,
bearophile
That's because my original
I need to use OSX's _NSGetExecutablePath, and I've declared it:
extern(C) int _NSGetExecutablePath(char* buf, uint* bufsize);
I don't have access to a OSX box to test it on ATM, so I need to know: Is
there anything I need to tell the linker (like, anything special I need to
explicitly link in)
Ferd Burton fredlbur...@gmail.com wrote in message
news:hurkuc$lc...@digitalmars.com...
== Quote from Jacob Carlborg (d...@me.com)'s article
On 2010-06-09 21:16, Fred Burton wrote:
Hi, I have (sort of) 2 questions:
Background:
I was doing some coding using Phobos, and recently switched
Jesse Phillips jessekphillip...@gmail.com wrote in message
news:htue1b$2so...@digitalmars.com...
D1.x has an alias for string to char[]
Phobos does, but Tango doesn't seem to.
div0 d...@users.sourceforge.net wrote in message
news:hshfe9$o0...@digitalmars.com...
Strange what OPTLINK is doing; normally it crashes at the drop of a hat,
so it seems unreasonable that it processes the .obj a bit then
(un)successfully exits. Maybe the .obj is corrupt in some way that
bearophile bearophileh...@lycos.com wrote in message
news:hp8jra$1ln...@digitalmars.com...
If you don't want that doplication you can also write:
enum auto f = Foo();
Can't you do:
enum f = Foo();
?
In D1, is there any reason I should be getting an error on this?:
// module A:
enum FooA { fooA };
void bar(FooA x) {}
// module B:
import A;
enum FooB { fooB };
void bar(FooB x) {}
bar(FooB.fooB); // Error: A.bar conflicts with B.bar
Is overloading across modules not allowed? Is overloading
bearophile bearophileh...@lycos.com wrote in message
news:ho8k5m$5k...@digitalmars.com...
div0:
Spec explicity says enums are convertible to their base type:
Right, but I am not sure it's a good design decision. I think requiring a
cast can be better.
I absolutely agree.
Besides, use of
BCS n...@anon.com wrote in message
news:a6268ff119c68cc98a14e065...@news.digitalmars.com...
Hello Nick,
Is overloading across modules not allowed? Is overloading on two
different enum types not allowed? Is it a DMD bug? Or does this all
work fine and I probably just have some other problem
Ellery Newcomer ellery-newco...@utulsa.edu wrote in message
news:hn9qvi$qf...@digitalmars.com...
how do you get stacktracing to work under windows?
Have you seen this page?
http://www.dsource.org/projects/tango/wiki/TutStackTrace
Windows
You need to compile without optimizations and with -g to
301 - 400 of 425 matches
Mail list logo