Array shortcut
Brian Hawkins <brianhks-BYHubErIwDGZvNlLnfxc/[email protected]> Sat, 29 Jan 2005 11:29:26 -0700
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
I would like a shortcut for creating arrays of strings something like this
testArray = {"one", "two", "three"};
or when calling a function
func(param1, {"one", "two", "three"}, param3);
Where parameter 2 is of type String[].
I have tried this with the latest code and it doesn't seem to be
available. So if it can be done how? If it can't be done, can it be added?
Brian
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl