Since I worked with AS, I developed a set of utility functions. For example:
$ cat utils/curried.as package utils { public function curried(f:Function, ...boundArgs):Function { function curriedHelper(...dynamicArgs):* { return f.apply(null, boundArgs.concat(dynamicArgs)); } return curriedHelper; } }
And I found that several times I would like to save several public functions in each file ... But ActionScript limits me to one public definition for each file, if this file defines its "I" as part of the package.
So, without creating a class with static methods, how can I get more than one public function in one file .as?
.as
just put, you cannot ... to declare a package level function, you need one file for the declared function ...
: , ... , AS2... , , ... 3-4 , ? -, ( IDE ), -, , , , ... , , ... , ...
Greetz
back2dos
Source: https://habr.com/ru/post/1712584/More articles:What is the system effect of starting a large number of timers in Java? - java(using union) I get neither contained in the aggregate function, nor with an error GROUP BY - sqlCreating a Windows installer for a Visual Studio project - installerHow to inherit if TForm child class? - delphiUnit testing and stored procedures - unit-testingКаково было конструктивное решение для вариационных функций, требующих массив? - c#What makes Winform's position harden initially? - c #Adding an attribute to a class using the property editor - visual-studioBest way to install full Python in cygwin / XP? - pythonповторное использование логики оператора switch - c#All Articles