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
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