Aller au contenu

Photo

Scripting with the new toolset extender


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
  Non-Integer for loops can now be compiled in the toolset with the new toolset extender (many thanks to virusman and SkywingvL for it), but I was curious what else it opened up options wise compared to the default compiler.

  Are there any tips/tricks/options any of the folks that have been using the PrC compiler before might have for things that can now be done in toolset with scripts?

#2
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
Circular file dependencies are possible with it. Not that I recommend them. :P

Mainly, you should recompile all your scripts, since it will catch errors the bioware compiler won't, as well as compiling them more efficiently.

Funky

#3
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
Hmm... You're right about the compiler being more efficient, that's for certain. The script I'd tested before that I could remember the debug time for was 1 loop of 500 executions = 15 ms.

Recompiling, staying as a while loop: 10 loops of 500, 77 ms (half, essentially)
Remaking the exact same script as a for loop: 10 loops of 500, 62 ms.

That last one I hadn't expected. I thought they were just easier to read, but it seems for loops compile better as well.

#4
the.gray.fox

the.gray.fox
  • Members
  • 127 messages
Questions:

-- Are bitfields allowed?
struct sFOO { int Lo : 16; int Hi : 16; };

-- Can I nest UDTs without making it go nuts?
-- Is there support for macros (even a very limited one would be great)?

[/edit]
-- Arrays?
(they would be syntactic sugar, I know -- but they are handy and help to better conceptualize)


(It is not that I am lazy -- It is that I can not try it from here -- thanks)


-fox

Modifié par the.gray.fox, 19 juin 2011 - 12:54 .


#5
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
Aside from what's been mentioned, it doesn't allow anything more, that I'm aware. Certainly not arrays. C, this ain't.

Funky