Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: polygon7 on March 10, 2008, 04:53:16 pm

Title: Using Squirrel Standard Library in C::B (was: $YEAR missing in 8.02)
Post by: polygon7 on March 10, 2008, 04:53:16 pm
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.
Title: Re: $YEAR missing in 8.02
Post by: 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?
Title: Re: $YEAR missing in 8.02
Post by: polygon7 on March 10, 2008, 05:39:55 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:
Code
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