Dear Eckard,
I can only answer one of your questions:
> {Property.get 'oz.home'} gives me a list of characters while
> {Property.get 'platform.name'} gives me a string. That seems a bit
> inconsistent to me, are both values taken from much different sources -
> where's the difference of both
> (47|117|115|114|47|108|105|98|47|109|,,,|,,, vs. 'linux-i486')?
In Oz, a string _is_ a list of characters. You can display such a string with
"System.showInfo".
The result of {Property.get 'platform.name'} is an _atom_. Atoms are similar to
Ruby symbols and somwehat similar to C++ enum literals.
It makes sense to use atoms for 'platform.name' because the set of possible
results tends to be limited.
Paths (like the value of 'oz.home') are better represented as strings because
there are many different paths and strings are easier to decompose, append etc.
Cheers,
Wolfgang
--
Nur bis 31.05.: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und
Telefonanschluss nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users