Re: String constants and once functions
Eric Bezault <ericb-D6Qt/9opevxWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.gobo.general |
|---|---|
| Organization | Gobo |
| Message-ID | <[email protected]> |
Paolo Redaelli wrote: > What are the differences between this two features? > > feature -- String constants > > foo: STRING is "Foo is nice" > -- foo string > > foo_once: STRING is > -- foo string implemented as an once function > once > Result := "Foo is nice and made once" > end > > I'm not sure: they should be almost the same shouldn't them? Yes, "almost". The difference is that you can redefine `foo_once' in a descendant class. -- Eric Bezault mailto:ericb-D6Qt/9opevxWk0Htik3J/[email protected] http://www.gobosoft.com To Post a message, send it to: [email protected] To Unsubscribe, send a blank message to: [email protected] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/gobo-eiffel/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/