<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: C++API: GS::Array Begin() vs. begin() in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/C-API-GS-Array-Begin-vs-begin/m-p/332228#M1441</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;then I'll have to break my piggy-bank to upgrade to a newer AC &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I'm about to sort my Array based on a (preferably lambda) function.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 13:24:49 GMT</pubDate>
    <dc:creator>Sam Karli</dc:creator>
    <dc:date>2022-03-14T13:24:49Z</dc:date>
    <item>
      <title>C++API: GS::Array Begin() vs. begin()</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-API-GS-Array-Begin-vs-begin/m-p/330481#M1439</link>
      <description>&lt;P&gt;Something strange I don't understand (but I'm a beginner)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For being able to iterate through an iterable object using a for each-style loop, the object must define the begin() and the end() methods. GS::Array does this, but as Begin() and End() strictly following the naming conventions. But as C++ is case sensitive, this doesn't meet requirement for the for each loops, so it cannot be done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I tried to create an inherited Array class (now S::Array) and defining the begin() and end() methods, and voilá, for each started to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't believe that it's a real issue and I try to understand where I'm wrong.&lt;/P&gt;&lt;P&gt;-is it meant to work? (I use a Community Edition of VS and Windows SDK 7.1, for my old Archicad SE 2016 ~ AC19, so not a vanilla environment, this might be responsible for the difference, at least in theory)&lt;/P&gt;&lt;P&gt;-I haven't seen any for each, or for (auto this:that) -style looping, so it's possible that in Graphisoft folks don't use this style of loooping (only the indexed or using the blablaIterator, both are quite long and more error-prone, I guess). Is this the case?&lt;/P&gt;&lt;P&gt;-one extra thing, for meg the for each (auto this in that) works, while for (auto this:that) not, what can be the root of the problem? for each is discouraged / deprecated by M$, as I have read, what can be the root of the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think all these are a beginner's lamentations, but maybe worth of answeing it&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 19:28:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-API-GS-Array-Begin-vs-begin/m-p/330481#M1439</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2022-02-19T19:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: C++API: GS::Array Begin() vs. begin()</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-API-GS-Array-Begin-vs-begin/m-p/331685#M1440</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;
&lt;P&gt;I'm afraid you are out of luck with our Array in older versions of the development kit (AC19 _is_ old for us &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;). The latest Development Kit for Archicad 25 does support modern C++ (C++14, to be precise), like the &lt;CODE&gt;for (const auto&amp;amp; elem: array)&lt;/CODE&gt; syntax.&lt;/P&gt;
&lt;P&gt;Best, Akos&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 16:55:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-API-GS-Array-Begin-vs-begin/m-p/331685#M1440</guid>
      <dc:creator>Akos Somorjai</dc:creator>
      <dc:date>2022-03-07T16:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: C++API: GS::Array Begin() vs. begin()</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/C-API-GS-Array-Begin-vs-begin/m-p/332228#M1441</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;then I'll have to break my piggy-bank to upgrade to a newer AC &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I'm about to sort my Array based on a (preferably lambda) function.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 13:24:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/C-API-GS-Array-Begin-vs-begin/m-p/332228#M1441</guid>
      <dc:creator>Sam Karli</dc:creator>
      <dc:date>2022-03-14T13:24:49Z</dc:date>
    </item>
  </channel>
</rss>

