The Artima Developer Community
Sponsored Link

Agile Buzz Forum
#import is back

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
#import is back Posted: Dec 31, 2003 11:58 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: #import is back
Feed Title: Travis Griggs - Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/travis-rss.xml
Feed Description: This TAG Line is Extra
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Travis Griggs - Blog

Advertisement
About a year ago, I started playing with ObjC. I learned some good, some great, some bad, some ugly. I haven't done much with it lately (been too busy), but I still lurk on the mailing lists and such. One of the things I loved about ObjC was the #import directive, it was like #include done right. But then I began discovering that it wasn't preferred and even deprecated. But lately, according to list traffic, now that there is a couple of new gobjc maintainers, it's back and back to stay. Undeprecated, etc. The 3.4 line of gcc supposedly supports it fully. See, sometimes, good does prevail.

For those wondering what the heck the #import directive is, it's like a smart #include. But it's smart enough to notice whether you've already #imported a file or not, so you don't get in duplicate #include cases which require that every .h file in the world be decorated with the

#ifndef THIS_HEADER_TOKEN_H
#define THIS_HEADER_TOKEN_H
.
.
.
#endif
pattern that shows up everywhere. Basically, #import was a once-and-only-once solution to the problem.

Read: #import is back

Topic: Warmed over Objects Previous Topic   Next Topic Topic: Announcing StackOverflow package in Public Store

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use