Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arrays

 
adam Lui
Ranch Hand
Posts: 186
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"when both source type and target type are arrays, the elements of both arrays must be object reference types and not primitive types. also, the object reference type of the source array must be (implicitly) convertible to the object reference type of the target array."

can anyone pls give any example?

i dont get the points here at all!
 
Henry Wong
author
Marshal
Pie
Posts: 20836
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont get the points here at all!


Well, since we don't have the context. We don't get the point that this is referring to either.


As a guess, this is describing the two parameters to a method. And the restrictions on those parameters, which are...

- Both parameters must be array of Objects.
- The elements of the source array must be the same as elements of the target array, or a subclass of elements of the target array.

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic