Operator New returning Any Ptr

For other topics related to the FreeBASIC project or its community.
Rule
Posts: 9
Joined: Nov 03, 2020 19:04
Contact:

Operator New returning Any Ptr

Postby Rule » Nov 23, 2021 22:09

What is the reason that Operator datatype.New returns Any Ptr? I'd think it would be natural to return datatype Ptr.
fxm
Moderator
Posts: 10765
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Operator New returning Any Ptr

Postby fxm » Nov 23, 2021 22:26

I have already thought about this.
See 'New/Delete operator and returned/provided pointer type'.
Rule
Posts: 9
Joined: Nov 03, 2020 19:04
Contact:

Re: Operator New returning Any Ptr

Postby Rule » Nov 23, 2021 22:37

fxm, thanks for the link. Searching the forum for "Operator", "New", or "Any" produced too many hits.

Return to “Community Discussion”

Who is online

Users browsing this forum: Josep Roca and 3 guests