Re: C++ & gnome (was: Re: opening Gnome to multiple (windowing) systems)
- From: Federico Mena <federico nuclecu unam mx>
- To: gnome-list gnome org
- Subject: Re: C++ & gnome (was: Re: opening Gnome to multiple (windowing) systems)
- Date: Wed, 15 Apr 1998 14:45:00 -0500
> (one Q about Obj-C is the "String" in setString the type of the
> argument?)
No. When you declare the method, you do something like
@interface MyObject : MyParentObject
{
...
}
- setString:(char *) string
withFont:(GdkFont *) font
atSize:(int) size;
- anotherMethod:...
@end
The nice thing about having named parameters is that it makes the code
very easy to read. When you have functions that take 10 parameters,
it is very useful to know what is what. Things like
some_function ("hello", 1, TRUE, 2.5, 3, &foo, 9. 42);
are not very intuitive... :-)
Quartic
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]