Search found 11987 matches
- Sep 05, 2013 7:45
- Forum: Community Discussion
- Topic: New to git: Functions with byref returns
- Replies: 140
- Views: 30432
Re: New to git: Functions with byref returns
Using a function returning a Zstring by reference, we can modify a constant (zstring) ! Const z = "abcd" Print @z, z Function f () Byref As Zstring Return z End Function Print @(f()), f() f() = "efgh" Print @(f()), f() Print @z, z Sleep 4223032 abcd 4223032 abcd 4223032 efgh 422...
- Sep 04, 2013 7:40
- Forum: Community Discussion
- Topic: New to git: Functions with byref returns
- Replies: 140
- Views: 30432
Re: New to git: Functions with byref returns
Function f( ) ByRef As Const ZString Const z = "abcd" #Print Typeof( z ) '' This string will be returned by reference, no copy will be created. Function = z End Function Print f( ) #Print Typeof( f( ) ) Compiler output: ZSTRING * 5 CONST ZSTRING * 1 Function f( ) ByRef As Const ZString St...
- Sep 03, 2013 22:22
- Forum: Community Discussion
- Topic: New to git: Functions with byref returns
- Replies: 140
- Views: 30432
Re: New to git: Functions with byref returns
But is this a good example to simply introduce the returning by reference?
This example raises too other many questions!
This example raises too other many questions!
- Sep 03, 2013 19:30
- Forum: Community Discussion
- Topic: New to git: Functions with byref returns
- Replies: 140
- Views: 30432
Re: New to git: Functions with byref returns
Is that why the first example of the documentation at KeyPgByrefFunction works also (that first example that follows has always disturbed me)? Function f( ) ByRef As Const ZString '' This string will be returned by reference, no copy will be created. Function = "abcd" End Function Print f(...
- Sep 03, 2013 18:42
- Forum: Community Discussion
- Topic: New to git: Functions with byref returns
- Replies: 140
- Views: 30432
Re: New to git: Functions with byref returns
Using a function returning a Zstring by reference, we can modify a constant (zstring) ! Const z = "abcd" Print @z, z Function f () Byref As Zstring Return z End Function Print @(f()), f() f() = "efgh" Print @(f()), f() Print @z, z Sleep 4223032 abcd 4223032 abcd 4223032 efgh 422...
- Sep 01, 2013 9:12
- Forum: Community Discussion
- Topic: New FB release coming up
- Replies: 124
- Views: 31148
- Aug 31, 2013 10:19
- Forum: General
- Topic: Questions on inheritance in FreeBASIC
- Replies: 337
- Views: 69447
Re: Questions on inheritance in FreeBASIC
Let us remember this discusion in April/May/June on bug #614 Operator = (assignment to a derived object) modifies RTTI : I would consider it desirable that at least the most important and most annoying of the remaining bugs, #614 Operator = (assignment to a derived object) modifies RTTI , should be...
- Aug 31, 2013 5:21
- Forum: Community Discussion
- Topic: New FB release coming up
- Replies: 124
- Views: 31148
Re: New FB release coming up
I have not had any response to this previous post: http://www.freebasic.net/forum/viewtopi ... 82#p190582
- Aug 29, 2013 12:21
- Forum: General
- Topic: new command and const
- Replies: 2
- Views: 568
Re: new command and const
Code: Select all
dim as const integer ptr Value
dim as const integer ptr ptr n = new const integer ptr (Value)
- Aug 28, 2013 19:07
- Forum: Community Discussion
- Topic: Abstract/Virtual destructor/method behaviour
- Replies: 229
- Views: 50525
Re: Abstract/Virtual destructor/method behaviour
About the Commit [f39553] Add [] overloading support (2013-07-21):
- I hope the overloaded member operator "[]" may also be declared as virtual?
- I hope the overloaded member operator "[]" may also be declared as virtual?
- Aug 28, 2013 16:52
- Forum: General
- Topic: Deallocate not freeing memory?
- Replies: 7
- Views: 2074
Re: Deallocate not freeing memory?
And in addition, by using New/Delete (Byte) in the pestery's program, writing in allocated memory (to modify the memory usage field in task manager) is useless because the implicit constructor does this automatically. pestery's program so modified: Const As Integer countmax = 1024 ' Max buffers Cons...
- Aug 27, 2013 21:25
- Forum: Community Discussion
- Topic: FreeBasic IDEs
- Replies: 29
- Views: 7249
Re: FreeBasic IDEs
Now everything is ok!
- Aug 27, 2013 19:09
- Forum: Community Discussion
- Topic: FreeBasic IDEs
- Replies: 29
- Views: 7249
Re: FreeBasic IDEs
Done. I actually went over to the FbEdit thread in Projects, and found a working SVN link there in KetilO's first post. This one gives a direct download rather than a code directory listing. https://fbedit.svn.sourceforge.net/svnroot/fbedit/Release/FbEdit.zip This link seems to be broken a few time...
- Aug 27, 2013 14:11
- Forum: Sources, Examples, Tips and Tricks
- Topic: Trajectory of an egg
- Replies: 13
- Views: 1957
Re: Trajectory of an egg
It's always an unknown in fb graphics whether a circle shows correctly. No, by reminding you this paragraph from the documentation about "Circle": ..... aspect is the aspect ratio, or the ratio of the y radius over the x radius. If omitted, the default for ScreenRes modes is 1.0, while fo...
- Aug 27, 2013 13:49
- Forum: Sources, Examples, Tips and Tricks
- Topic: Trajectory of an egg
- Replies: 13
- Views: 1957
Re: Trajectory of an egg
The circle of egg yolk must be corrected also (in my proposal, I changed two instructions "Circle").dodicat wrote:This seems to be ok in fb 18.5