Forum breadcrumbs - You are here:WeLoveGod RallysPublic Forums: futurebasicSyntax alomoly with CFDictionaryR …
You need to log in to create posts and topics.
Syntax alomoly with CFDictionaryRef
77,940 Posts
#1 · March 11, 2022, 1:20 pm
Quote from Forum Archives on March 11, 2022, 1:20 pmPosted by: maxetaylorjr <maxetaylorjr@...>
I ran into this just now. Why does it work one way and not the other?This works and compiles just fine if the variable is predefined. It is a global.CFDictionaryRef gFileDictgFileDict = fn MutableDictionaryWithCapacity( 0 )If put into a single line will not compile and produces the following error:CFDictionaryRef gFileDict = fn MutableDictionaryWithCapacity( 0 )_4_NSLog.incl...ILB_DictionaryUsage.fbm.m:48:31: error: initializer element is not a compile-time constantCFDictionaryRef gFileDict = MutableDictionaryWithCapacity( 0 );Tested over and over to make sure and very repeatable.—————————by: Max Emmons Taylor Jr. ©FB 7.0.12OS 12.2.1 MontereyXcode 13.2.14VFK20629—————————--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@freegroups.net To access the list archives, go to: http://freegroups.net/groups/futurebasic/
Posted by: maxetaylorjr <maxetaylorjr@...>
I ran into this just now. Why does it work one way and not the other?
This works and compiles just fine if the variable is predefined. It is a global.
CFDictionaryRef gFileDict
gFileDict = fn MutableDictionaryWithCapacity( 0 )
If put into a single line will not compile and produces the following error:
CFDictionaryRef gFileDict = fn MutableDictionaryWithCapacity( 0 )
_4_NSLog.incl...ILB_DictionaryUsage.fbm.m:48:31: error: initializer element is not a compile-time constant
CFDictionaryRef gFileDict = MutableDictionaryWithCapacity( 0 );
Tested over and over to make sure and very repeatable.
—————————
by: Max Emmons Taylor Jr. ©
FB 7.0.12
OS 12.2.1 Monterey
Xcode 13.2.1
4VFK20629
—————————
--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@freegroups.net To access the list archives, go to: http://freegroups.net/groups/futurebasic/
Click for thumbs down.0Click for thumbs up.0