From: <baz...@us...> - 2008-02-23 23:58:32
|
Revision: 8092 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=8092&view=rev Author: bazaarmagetron Date: 2008-02-23 15:58:32 -0800 (Sat, 23 Feb 2008) Log Message: ----------- Manuel Moos: Refactored string docu into primitive docu. Modified Paths: -------------- clio/trunk/clio/doc/argument_conversion.t2t.in Property Changed: ---------------- clio/trunk/clio/ Property changes on: clio/trunk/clio ___________________________________________________________________ Name: bzr:revision-info - timestamp: 2008-02-24 00:45:41.637000084 +0100 committer: Manuel Moos <z-...@us...> properties: branch-nick: clio + timestamp: 2008-02-24 00:52:31.595999956 +0100 committer: Manuel Moos <z-...@us...> properties: branch-nick: clio Name: bzr:revision-id:v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs - 4 z-...@us...-20080222202821-mkuiwckx41jof2gj 5 z-...@us...-20080222202957-htiysaaxkiroqd7e 6 z-...@us...-20080222211806-jc50b77qlgn2dp8j 7 z-...@us...-20080222215601-p8y78c77ncvq5eb1 8 z-...@us...-20080222223809-mmh9wh6yzrdm7oa1 9 z-...@us...-20080222232123-uhnuqd9db0p27rkf 10 z-...@us...-20080222232154-k64q4ee9zuq5r2jp 11 z-...@us...-20080222234236-ny0hc8lwybz73rv6 12 z-...@us...-20080223000039-566psft2c96236kw 13 z-...@us...-20080223000530-4mtket15l6oeo1ju 14 z-...@us...-20080223001030-5t86d3u3bidpoq6r 15 z-...@us...-20080223002857-qvx8z72tmsoguku0 16 z-...@us...-20080223004917-abqn3vdfqb1euyzc 17 z-...@us...-20080223010025-h0nul9yntjvutdbq 18 z-...@us...-20080223013357-1nzhrjwjr4g0h7g9 19 z-...@us...-20080223015240-btmt95d1vvlip4gl 20 z-...@us...-20080223124731-dlwuagon76gq2o3g 21 z-...@us...-20080223133015-0hjqyrki59ydwdcv 22 z-...@us...-20080223135113-icwd4g99yev9n0u2 23 z-...@us...-20080223152916-8rm942q1rmjlueca 24 z-...@us...-20080223174524-3lb2wm6tt5nytd4b 25 z-...@us...-20080223174610-gwmr3fn8456rwvmg 26 z-...@us...-20080223183115-ub0hshkf3zfs69ko 27 z-...@us...-20080223185539-cvhsltp2u12d5lgc 28 z-...@us...-20080223211352-km18u9bp9qhufyta 29 z-...@us...-20080223225132-94n2bwt307fujbg4 30 z-...@us...-20080223234541-mqp3d64uyn3no98y + 4 z-...@us...-20080222202821-mkuiwckx41jof2gj 5 z-...@us...-20080222202957-htiysaaxkiroqd7e 6 z-...@us...-20080222211806-jc50b77qlgn2dp8j 7 z-...@us...-20080222215601-p8y78c77ncvq5eb1 8 z-...@us...-20080222223809-mmh9wh6yzrdm7oa1 9 z-...@us...-20080222232123-uhnuqd9db0p27rkf 10 z-...@us...-20080222232154-k64q4ee9zuq5r2jp 11 z-...@us...-20080222234236-ny0hc8lwybz73rv6 12 z-...@us...-20080223000039-566psft2c96236kw 13 z-...@us...-20080223000530-4mtket15l6oeo1ju 14 z-...@us...-20080223001030-5t86d3u3bidpoq6r 15 z-...@us...-20080223002857-qvx8z72tmsoguku0 16 z-...@us...-20080223004917-abqn3vdfqb1euyzc 17 z-...@us...-20080223010025-h0nul9yntjvutdbq 18 z-...@us...-20080223013357-1nzhrjwjr4g0h7g9 19 z-...@us...-20080223015240-btmt95d1vvlip4gl 20 z-...@us...-20080223124731-dlwuagon76gq2o3g 21 z-...@us...-20080223133015-0hjqyrki59ydwdcv 22 z-...@us...-20080223135113-icwd4g99yev9n0u2 23 z-...@us...-20080223152916-8rm942q1rmjlueca 24 z-...@us...-20080223174524-3lb2wm6tt5nytd4b 25 z-...@us...-20080223174610-gwmr3fn8456rwvmg 26 z-...@us...-20080223183115-ub0hshkf3zfs69ko 27 z-...@us...-20080223185539-cvhsltp2u12d5lgc 28 z-...@us...-20080223211352-km18u9bp9qhufyta 29 z-...@us...-20080223225132-94n2bwt307fujbg4 30 z-...@us...-20080223234541-mqp3d64uyn3no98y 31 z-...@us...-20080223235231-5lshcanhqlkwv36n Modified: clio/trunk/clio/doc/argument_conversion.t2t.in =================================================================== --- clio/trunk/clio/doc/argument_conversion.t2t.in 2008-02-23 23:49:38 UTC (rev 8091) +++ clio/trunk/clio/doc/argument_conversion.t2t.in 2008-02-23 23:58:32 UTC (rev 8092) @@ -21,6 +21,11 @@ works even if the enum type is not registered with clio, but then you won't be able to use the object meaningfulyl in Io, you'll only be able to pass it around and have it transformed back to C++ unharmed. On conversion from Io to C++, only enum objects of the correct type are accepted. +- stringy things (std::string, char const *). Are converted as Io Sequences. Care has to be taken when + converting to ``char *`` (no ``const``) from Io; the C++-function will get a pointer to a mutable + buffer. That's not much use, however, since you won't be able to change the lenght of the buffer, so all + changes to the buffer you do make will be lost to Io. Use ``std::string &`` arguments if you want + your modifications to make it back to Io. References and pointers to primitives are converted over primitive proxies. If a reference to a primitive @@ -92,15 +97,6 @@ Don't worry about getting the type right. The error message the function gives you when you pass in a wrong type will tell you what was expected. -=== Strings === - -From C++ to Io, all things looking stringy (``std::string (const &/*)``, ``const char *``, ``char *``) are converted -to ``Sequence`` objects. - -Conversion to C++ is a bit more complicated. If conversion to C++ expects a std::string - -TO BE CONTINUED - === STL containers === Are not fully implemented yet. std::vector works if you include ``"clio/std_container.hpp"``. std::vectors will This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |