News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Using Squirrel Standard Library in C::B (was: $YEAR missing in 8.02)

Started by polygon7, March 10, 2008, 04:53:16 PM

Previous topic - Next topic

polygon7

Hi,
since 8.02 "$YEAR" isn't working anymore. Is this behavior intentional?
If yes, are there any other replacement for it?

//Edit: Sorry for posting in wrong subforum.
best regards,
p7
Free open source UML modeling tool: ArgoUML

thomas

What is $YEAR supposed to do? If it's a builtin variable to be expanded on the commandline, I am not aware of any such thing (not before 8.02 either). Do you confuse it with $TODAY maybe?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

polygon7

Quote from: thomas on March 10, 2008, 05:19:02 PM
What is $YEAR supposed to do? If it's a builtin variable to be expanded on the commandline, I am not aware of any such thing (not before 8.02 either). Do you confuse it with $TODAY maybe?

Hmm, sorry I make mistake. It was $TODAY.
But I have another question - It is possible to use squirrel "date()" function in C::B (or other from Squirrel Standard Library)?

I tried print(date()) in script console but it gives me error:

Welcome to the script console!
> print(date());

AN ERROR HAS OCCURED [the index 'date' does not exist]

CALLSTACK
*FUNCTION [main()] ScriptConsole line [1]

LOCALS
[this] TABLE

AN ERROR HAS OCCURED [the index 'date' does not exist]

CALLSTACK
*FUNCTION [main()] ScriptConsole line [1]

LOCALS
[this] TABLE
best regards,
p7
Free open source UML modeling tool: ArgoUML