Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[JS/ES] Ann: Operator Overloading in ExtendScript

Guide ,
May 25, 2010 May 25, 2010

Hi everyone,

I recently discovered that ExtendScript allows you to extend/override operators. It's a pretty old feature but I had not paid attention until now.

For example, you can create a + operator to compute Array object the way you want, or a * operator to multiplicate a String by a number, etc. You can also create a complete set of friendly operators for a fresh new class.

You'll find some practical examples (including the prototype of a Complex class) on Indiscripts:

http://www.indiscripts.com/post/2010/05/operator-overloading-with-extendscript

I hope it will interest you.

Regards,

Marc

TOPICS
Scripting
597
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 25, 2010 May 25, 2010

Marc,

You're a wild man!

You're treating ExtendScript like C++ or something...

Cool stuff! You scare me!

Harbs

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2010 May 26, 2010
LATEST

Very interesting, Marc -- thanks.

Peter

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines