Old 22nd April 2004, 20:17   #1
qWake
Junior Member
 
Join Date: Apr 2004
Posts: 2
Difference between ${THIS} and $THIS.

Yes, I'm an NSIS noob.

I have been searching the manual and the FAQ without success for the official word on the syntactic difference between using curly braces and not using them. A forum search on "{" does not return anything... Maybe I am missing an essential language reference.

My tests suggest that I need {} for my own !define'd constants and not for system-defined constants, but it would be good to know if there is more to it than just that or if I am missing the boat entirely.

Thanks!
qWake is offline   Reply With Quote
Old 22nd April 2004, 20:35   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
$THIS is a variable refernce, ${THIS} is a define (preprocessor constant) reference.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd April 2004, 02:08   #3
qWake
Junior Member
 
Join Date: Apr 2004
Posts: 2
Ah, thank you! Does the documentation mention it (and I just missed it?)

This NSIS is pretty cool. I figured out some of the script language and got a setup program running smoothly!
qWake is offline   Reply With Quote
Old 23rd April 2004, 08:51   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Documentation reference:

http://nsis.sourceforge.net/Docs/Chapter5.html#5.4
http://nsis.sourceforge.net/Docs/Chapter4.html#4.2
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.15
http://nsis.sourceforge.net/Docs/Chapter5.html#5.3

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump