My program doesn't have bugs. It just develops random features.
Difference between revisions of "Talk:UnrealScript compared with other languages"
From Unreal Wiki, The Unreal Engine Documentation Site
(→Relevance: change it if you have additional insight) |
|||
Line 9: | Line 9: | ||
== Relevance == | == Relevance == | ||
− | Did the person responsible for the majority of content on this page have extensive experience (hell any experience) w/ Java or C/C++? It doesn't look like it. The C++ section confused greatly... I just can't make a connection between it and Uscript... | + | Did the person responsible for the majority of content on this page have extensive experience (hell any experience) w/ Java or C/C++? It doesn't look like it. The C++ section confused greatly... I just can't make a connection between it and Uscript... {{unsigned|68.228.48.9|13:47, 7 February 2010}} |
+ | |||
+ | :You are free to correct anything that looks wrong or confusing to you, that's the great thing about a wiki. —[[User:Wormbo|Wormbo]] 15:05, 7 February 2010 (UTC) |
Revision as of 08:05, 7 February 2010
Java
- The language probably doesn't support arrays of booleans either. Instead arrays of bytes are usually used.
- The packages system in unrealscript is more awkward: you can't explicitely define to what package a class belongs which can lead to some ambiguities.
- Java uses boxing/unboxing to translate primitive data types (string, integer...) to their corresponding object forms when necessary.
- In fact, the package system in UnrealScript is very explicit: a class belongs to the package it was declared in. Classes with identical names in different packages are discouraged, but possible. If you ignore this convention, you pay by potentially not being able to use typecasting as you wanted. Java does support boolean arrays, it's just usually more common to use a BitSet object due to its better memory usage. —Wormbo 12:32, 10 May 2009 (UTC)
- Having classes with the same name can be problematic, especially when you're trying to override gametypes that share a common set of classes and these gametypes are being used on the same server. This kind of forces you to rewrite eveything since classes are probably accessed on a first in line basis. In Java it's possible to access classes using the package.class notation. Thanks for the information concerning booleans. --Azura 16:30, 22 May 2009 (UTC)
Relevance
Did the person responsible for the majority of content on this page have extensive experience (hell any experience) w/ Java or C/C++? It doesn't look like it. The C++ section confused greatly... I just can't make a connection between it and Uscript... —Preceding unsigned comment added by 68.228.48.9 (talk • contribs) 13:47, 7 February 2010
- You are free to correct anything that looks wrong or confusing to you, that's the great thing about a wiki. —Wormbo 15:05, 7 February 2010 (UTC)