www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - dots in #define

↑ ↓ ← Roland <rv ronetech.com> writes:
this macro:

#define .x    .coord[0]

does not compile: identifier expected.

is it because there is something wrong with my macro ?

(DM8.15, DM8.26: same)

thanks

roland
Apr 09 2002
↑ ↓ "Walter" <walter digitalmars.com> writes:
"Roland" <rv ronetech.com> wrote in message
news:3CB342E1.88D5CED ronetech.com...
 #define .x    .coord[0]
 does not compile: identifier expected.
 is it because there is something wrong with my macro ?

Yes. The . in front of the x causes the error.
Apr 09 2002
↑ ↓ Roland <rv ronetech.com> writes:
Walter a écrit :

 "Roland" <rv ronetech.com> wrote in message
 news:3CB342E1.88D5CED ronetech.com...
 #define .x    .coord[0]
 does not compile: identifier expected.
 is it because there is something wrong with my macro ?

Yes. The . in front of the x causes the error.

thanks it seem i need to go back to school please don't say anybody i asked such a stupid question roland
Apr 10 2002
↑ ↓ "Walter" <walter digitalmars.com> writes:
"Roland" <rv ronetech.com> wrote in message
news:3CB3E67F.B8A747D2 ronetech.com...
 please don't say anybody i asked such a stupid question

Your secret is safe with us. <g>
Apr 11 2002
↑ ↓ → Jan Knepper <jan smartsoft.cc> writes:
Sure is! <g>

Walter wrote:

 "Roland" <rv ronetech.com> wrote in message
 news:3CB3E67F.B8A747D2 ronetech.com...
 please don't say anybody i asked such a stupid question

Your secret is safe with us. <g>

Apr 11 2002