>Hmm... char *, loaded from disk in an implementation-defined fashion...
>into memory... (anyone see a leak here?)
>
>How about a "string" instead of a char *?

Yeah, something like that. wx has a cool string class that looks almost
like ANSI's.

>Concatenation would certainly be fun across multiple languages. Imagine,
>
>SITUATION:     "While on line x of script of background button blah
>                blah blah in the tokenize and compile phase, [we'd
>                need better words for these]"
>
>ERROR:         "an unexpected token error occured."
>
>Would that translate and concatenate right into French? German? Japanese?

There are possible workarounds. E.g. some German apps have:

Beim Kompilieren der Datei "script.txt" ist ein Fehler aufgetreten:
Es ist nicht gen�gend RAM verf�gbar.

I'm sure something like that would work in any language.

>Basically, ParamText()?

A cross-platform routine in the same nature as ParamText or vsprintf(), yes.

>I'd think that every C++ compiler does; it's been there for quite some
>time. And it's the only way to initialize classes (within the class) inside
>a constructor.

 Oh? Great! That was in none of my books. Good technique, leave it in
there. But we should make it a convention not to mix and mingle member
initializing and constructor calls, i.e.

MyClass::MyClass( p1, p2 )
        : subClass(p1), subClass(p2)
        mMemberVar(p1), mMemberVar(p2)

a second line for those.

>It is a function being called. (You didn't expect me to say that now, did
>you?) It's a constructor call.

Well, it's in a mamber variable, and not one of the parents of our class.
We should make sure we separate that so people can immediately discover
missing constructor calls without having to wade through dozens of member
variables. Agreed? Separate lines like above, maybe with a comment between
them, should suffice.

Cheers,
-- M. Uli Kusterer

------------------------------------------------------------
             http://www.weblayout.com/witness
       'The Witnesses of TeachText are everywhere...'

--- HELP SAVE HYPERCARD: ---
Details at: http://www.hyperactivesw.com/SaveHC.html
Sign: http://www.giguere.uqam.ca/petition/hcpetition.html

Reply via email to