I'm having some problems grokking version.
How would I translate this simple C macro?
#if !defined(IDENT) || !defined(IDENT2)
I've tried the following:
version(!IDENT)
identifier or integer expected, not !
!version(IDENT)
Declaration expected, not '!'
version(IDENT || IDENT2)
found '||'
On Sun, 27 Feb 2011 09:52:01 -0500, simendsjo simen.end...@pandavre.com
wrote:
I'm having some problems grokking version.
How would I translate this simple C macro?
#if !defined(IDENT) || !defined(IDENT2)
I've tried the following:
version(!IDENT)
identifier or integer expected, not !
On 2/27/11 3:52 PM, simendsjo wrote:
I'm having some problems grokking version.
How would I translate this simple C macro?
#if !defined(IDENT) || !defined(IDENT2)
You are facing a quite common question, with the answer being that there
is no simpler way to do this, at least that I know of.
On 2/27/11 4:14 PM, Steven Schveighoffer wrote:
But here is essentially the way to do your thingy.
version(IDENT)
{
}
else version(IDENT2)
{
}
else
{
version=NOT_IDENT_OR_IDENT2;
}
version(NOT_IDENT_OR_IDENT2)
{
...
}
Wouldn't that be »!(IDENT || IDENT2)«, as opposed to »!IDENT || !IDENT2«?
On 27.02.2011 16:18, David Nadlinger wrote:
On 2/27/11 3:52 PM, simendsjo wrote:
I'm having some problems grokking version.
How would I translate this simple C macro?
#if !defined(IDENT) || !defined(IDENT2)
You are facing a quite common question, with the answer being that there
is no
On Sun, 27 Feb 2011 15:52:01 +0100, simendsjo wrote:
I'm having some problems grokking version.
How would I translate this simple C macro? #if !defined(IDENT) ||
!defined(IDENT2)
I've tried the following:
version(!IDENT)
identifier or integer expected, not !
!version(IDENT)
On 27.02.2011 17:27, Lars T. Kyllingstad wrote:
On Sun, 27 Feb 2011 15:52:01 +0100, simendsjo wrote:
I'm having some problems grokking version.
How would I translate this simple C macro? #if !defined(IDENT) ||
!defined(IDENT2)
I've tried the following:
version(!IDENT)
identifier or
On Sun, 27 Feb 2011 10:20:46 -0500, David Nadlinger s...@klickverbot.at
wrote:
On 2/27/11 4:14 PM, Steven Schveighoffer wrote:
But here is essentially the way to do your thingy.
version(IDENT)
{
}
else version(IDENT2)
{
}
else
{
version=NOT_IDENT_OR_IDENT2;
}
version(NOT_IDENT_OR_IDENT2)
{
On Sunday 27 February 2011 07:18:29 David Nadlinger wrote:
On 2/27/11 3:52 PM, simendsjo wrote:
I'm having some problems grokking version.
How would I translate this simple C macro?
#if !defined(IDENT) || !defined(IDENT2)
You are facing a quite common question, with the answer being