English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 12 March 2021, 20:05   #21
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 47
Posts: 1,815
Quote:
Originally Posted by nyteshade View Post
Do people here not use CreatePool(), AllocPooled() and DeletePool?
Yeah but only on Kickstart 3.1+. 3.0 was buggy and 2.x added a linker library not needed on KS3.
Samurai_Crow is offline  
Old 12 March 2021, 20:06   #22
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 47
Posts: 1,815
Quote:
Originally Posted by Ernst Blofeld View Post
Is this available on Kickstart 1.2?
Neither is AllocVec/FreeVec.
Samurai_Crow is offline  
Old 12 March 2021, 20:12   #23
Ernst Blofeld
<optimized out>

Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 304
Quote:
Originally Posted by Samurai_Crow View Post
Neither is AllocVec/FreeVec.
Well, true, but easily replicated with normal malloc calls. The pooled stuff takes more than 2 lines of code.

Edit: And considering your posts above, why do you even think this is worth arguing about?
Ernst Blofeld is offline  
Old 12 March 2021, 20:38   #24
Samurai_Crow
Total Chaos forever!

Samurai_Crow's Avatar
 
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 47
Posts: 1,815
Quote:
Originally Posted by Ernst Blofeld View Post
Edit: And considering your posts above, why do you even think this is worth arguing about?
I want to develop in C++11 or newer but the fully retro crowd refuses to upgrade to the latest Kickstarts. This means I have to keep track of what routines I can and can't use in my code. What a PITA!
Samurai_Crow is offline  
Old 12 March 2021, 20:44   #25
Ernst Blofeld
<optimized out>

Ernst Blofeld's Avatar
 
Join Date: Sep 2020
Location: <optimized out>
Posts: 304
Quote:
Originally Posted by Samurai_Crow View Post
retro
adjective Informal: of or designating the style of an earlier time
Ernst Blofeld is offline  
Old 12 March 2021, 20:59   #26
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 1,495
Quote:
Originally Posted by Emufr3ak View Post
I can define classes and access them. As soon as I use the new operator I get linker errors (undefined symbol).

You can simply provide your own "operator new()". Actually, you need to create two operator new, the array version and the scalar version, and the corresponding operator delete, also both versions. You need to throw "bad_alloc" then yourself if the allocation fails.
Thomas Richter is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
amiga-gcc minimal output Fook42 Coders. C/C++ 17 02 May 2019 10:49
Amiga GCC 6.2 developer guide appreciated asymetrix Coders. C/C++ 19 12 October 2018 00:58
Req: gcc crosscompiler with amiga hunk support emufan Coders. C/C++ 5 02 October 2017 02:51
Amiga GCC Where to find it? _ThEcRoW request.Apps 10 02 March 2006 01:44
Amiga GCC Where can i find? _ThEcRoW request.Apps 1 22 October 2005 19:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.06993 seconds with 15 queries