On 8/22/2012 11:56 PM, Kai Meyer wrote:
There's got to be a way to link against libraries generated by MinGW,
right? I'm using CMake to create a very simple 1 method library. If I
tell D to link against the .lib (simple ar archive), it complains that
it's an invalid library. If I tell D to link a
Jonathan Crapuchettes:
Might anyone from this forum have some thoughts for this
problem?
http://stackoverflow.com/questions/12082561/sse2-movddup-not-moving-values
There are some mistakes in that asm code:
import core.stdc.stdio: printf;
import core.cpuid: sse3;
void main() {
assert(sse3(
On 08/22/2012 12:15 PM, Ellery Newcomer wrote:
On 08/22/2012 12:03 PM, Ali Çehreli wrote:
On 08/22/2012 11:51 AM, Ellery Newcomer wrote:
> hey.
>
> is this valid code?
>
> void func1(int i, double j = 1.0) {
> }
>
> void main() {
> auto fn = &func1;
> func1(1); //dmd: ok
> fn(1); // dmd: not ok
On Wednesday, August 22, 2012 11:51:45 Ellery Newcomer wrote:
> hey.
>
> is this valid code?
>
> void func1(int i, double j = 1.0) {
> }
>
> void main() {
> auto fn = &func1;
> func1(1); //dmd: ok
> fn(1); // dmd: not ok
> }
Default arguments are not part of the type. This behavior is very much
On 08/22/2012 12:03 PM, Ali Çehreli wrote:
On 08/22/2012 11:51 AM, Ellery Newcomer wrote:
> hey.
>
> is this valid code?
>
> void func1(int i, double j = 1.0) {
> }
>
> void main() {
> auto fn = &func1;
> func1(1); //dmd: ok
> fn(1); // dmd: not ok
> }
The type of the function pointe
On 08/22/2012 11:51 AM, Ellery Newcomer wrote:
> hey.
>
> is this valid code?
>
> void func1(int i, double j = 1.0) {
> }
>
> void main() {
> auto fn = &func1;
> func1(1); //dmd: ok
> fn(1); // dmd: not ok
> }
The type of the function pointer does not include the values of the
default parameters
hey.
is this valid code?
void func1(int i, double j = 1.0) {
}
void main() {
auto fn = &func1;
func1(1); //dmd: ok
fn(1); // dmd: not ok
}
On Wednesday, 22 August 2012 at 14:56:40 UTC, Kai Meyer wrote:
There's got to be a way to link against libraries generated by
MinGW, right? I'm using CMake to create a very simple 1 method
library. If I tell D to link against the .lib (simple ar
archive), it complains that it's an invalid libra
On Wednesday, 22 August 2012 at 14:52:00 UTC, Kai Meyer wrote:
If I try to modify a registry value with 'key.setValue()', I
get an error 5, which I think is ERROR_ACCESS_DENIED. Even if I
right click my .exe and choose 'run as Administrator'. I am on
Windows 7 x64, and dmd 2.060. From my resear
There's got to be a way to link against libraries generated by
MinGW, right? I'm using CMake to create a very simple 1 method
library. If I tell D to link against the .lib (simple ar
archive), it complains that it's an invalid library. If I tell D
to link against the .dll, it complains that the
If I try to modify a registry value with 'key.setValue()', I get
an error 5, which I think is ERROR_ACCESS_DENIED. Even if I right
click my .exe and choose 'run as Administrator'. I am on Windows
7 x64, and dmd 2.060. From my research, I think I have to modify
my privilege tokens:
http://msdn
On Wed, 22 Aug 2012 13:09:49 +0200, bearophile
wrote:
Minas Mina:
I think it's a bug, what do you think?
Search for it in Bugzilla. Maybe it's there already.
Bye,
bearophile
It is. #7021/#8457
--
Simen
Minas Mina:
I think it's a bug, what do you think?
Search for it in Bugzilla. Maybe it's there already.
Bye,
bearophile
I have this struct:
struct S
{
int[] t;
@disable this();
this(int sz)
{
t = new int[sz];
t[] = 1;
}
S opCall(int sz)
{
S s = S(sz);
return s;
14 matches
Mail list logo