discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dia2code objc


From: Björn Gohla
Subject: Re: dia2code objc
Date: Wed, 27 Mar 2002 10:46:34 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 27 March 2002 10:22, Markus Hitter wrote:
> Am Dienstag den, 26. März 2002, um 15:25, schrieb Björn Gohla:
> > perhaps access control should then not be prohibitive but
> > informative, to
> > tell a user when an object is being used in violation of its design
> > rationale.
>
> Don't know how plain GNU compilers do it, but with the Apple
> tweaked one I get something like:
>
> NSObject.m:544: warning: instance variable `isa' is @protected;
> this will be a hard error in the future

my original idea was to have this kind of warning for private or protected 
methods. 

> when trying to access a protected variable. Is this what you
> have in mind?

to my embarassment i was not even aware there were attribute visibility 
directives in objc ;) . i have never so far seen them in use. using accessors 
for public variables seems more common and more powerful too.

- -- 
Wolfe's law of journalism:
You cannot hope/to bribe or twist,/thank God ! the/British journalist.
But seeing what/the man can do/unbribed, there's/no occasion to.
pub  1024D/834F4976 2001-01-07 Björn Gohla (Wissenschaftler, Weltbürger) 
<b.gohla@gmx.de>
     Key fingerprint = 9FF4 FEDA CCDF DA0E 14D5  8129 6C14 3C39 834F 4976
sub  1024g/29571FE2 2001-01-07
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8oZT+bBQ8OYNPSXYRAk4VAKCLcii2YNCwAqGa6Nhj5wl1KkNkowCgqkO2
qmFgEJSYZG5l8tjr5o8ACXw=
=J41R
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]