Author Topic: Using Squirrel Standard Library in C::B (was: $YEAR missing in 8.02)  (Read 3244 times)

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
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.
« Last Edit: March 10, 2008, 05:44:20 pm by polygon7 »
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: $YEAR missing in 8.02
« Reply #1 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?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: $YEAR missing in 8.02
« Reply #2 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
best regards,
p7
 Free open source UML modeling tool: ArgoUML