Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.objective-c > #157

resource management and constructors question

Newsgroups comp.lang.objective-c
From Automn <automn@willow.org>
Subject resource management and constructors question
Message-ID <slrnmdjp8g.88b.automn@sigtrans.org> (permalink)
Date 2015-02-10 10:58 +0000
Organization SunSITE.dk - Supporting Open source

Show all headers | View raw


Hello,

I have a bit of experience in Smalltalk and Objective-C but someone told me
something I do not understand :

Why cannot you overload the -new method for construction ? It does not 
operate on classes but on instances AFAIK so I can retain data in it but 
apparently no one wants to have a clean interfaced -new overloaded method ?

I do not use +new as a class method, I want to use -new.

Best Reagrds,
Automn

Back to comp.lang.objective-c | Previous | NextNext in thread | Find similar | Unroll thread


Thread

resource management and constructors question Automn <automn@willow.org> - 2015-02-10 10:58 +0000
  Re: resource management and constructors question Doc O'Leary  <droleary@2usenet2014.subsume.com> - 2015-02-10 15:31 +0000
    Re: resource management and constructors question Automn <automn@willow.org> - 2015-02-10 19:34 +0000

csiph-web