Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

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

(1/1)

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.

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?

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?

--- End quote ---

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

--- End code ---

Navigation

[0] Message Index

Go to full version