# Silver

**URL:** https://talk.remobjects.com/c/elements/silver/26.md

[Latest](https://talk.remobjects.com/latest.md) · [Categories](https://talk.remobjects.com/categories.md) · [Tags](https://talk.remobjects.com/tags.md)

---

## [Creating reusable modules for both Fire/Silver and XCode](https://talk.remobjects.com/t/creating-reusable-modules-for-both-fire-silver-and-xcode/5799)

<div class="topic-metadata">

**Author:** [@nkulmati](https://talk.remobjects.com/u/nkulmati)\
**Replies:** 5\
**Last updated:** [February 4, 2016, 2:11am UTC](https://talk.remobjects.com/t/creating-reusable-modules-for-both-fire-silver-and-xcode/5799 "2016-02-04T02:11:12Z")

</div>

Hi All, I am building an iOs app in Xcode using Swift. I am trying to split it into independent modules, so that some of them will be shared in the future OSX and WatchKit versions of my app. So let's say my most basic…

---

## [Welcome, New Testers!](https://talk.remobjects.com/t/welcome-new-testers/5496)

<div class="topic-metadata">

**Author:** [@mh](https://talk.remobjects.com/u/mh)\
**Replies:** 19\
**Last updated:** [September 9, 2016, 6:56am UTC](https://talk.remobjects.com/t/welcome-new-testers/5496 "2016-09-09T06:56:33Z")

</div>

Hi everyone. we just invited a whole bunch of new people to the Silver beta, so i expect this forum to be getting busy soon \[wink\]. To get started,make sure to check out http://docs.elementscompiler.com/Silver for ou…

---

## [How can I connect to other AI model provider?](https://talk.remobjects.com/t/how-can-i-connect-to-other-ai-model-provider/33690)

<div class="topic-metadata">

**Author:** [@xiaoguang](https://talk.remobjects.com/u/xiaoguang)\
**Replies:** 6\
**Last updated:** [July 30, 2026, 12:15pm UTC](https://talk.remobjects.com/t/how-can-i-connect-to-other-ai-model-provider/33690 "2026-07-30T12:15:30Z")

</div>

I would like to use CodeBot with other AI model providers like kimi k3/minixmax, these models are good enough for most of the tasks, and they are more affordable. The providers provide Anthropic/open AI compatitable URLs…

---

## [Can I add custom 'add / remove' block to silver \_\_event?](https://talk.remobjects.com/t/can-i-add-custom-add-remove-block-to-silver-event/33014)

<div class="topic-metadata">

**Author:** [@syriku](https://talk.remobjects.com/u/syriku)\
**Replies:** 2\
**Last updated:** [February 25, 2026, 12:26pm UTC](https://talk.remobjects.com/t/can-i-add-custom-add-remove-block-to-silver-event/33014 "2026-02-25T12:26:11Z")

</div>

As what we do in C# and Oxygene?

---

## [Will Silver be updated for new Elements only features?](https://talk.remobjects.com/t/will-silver-be-updated-for-new-elements-only-features/33008)

<div class="topic-metadata">

**Author:** [@syriku](https://talk.remobjects.com/u/syriku)\
**Replies:** 3\
**Last updated:** [February 25, 2026, 11:28am UTC](https://talk.remobjects.com/t/will-silver-be-updated-for-new-elements-only-features/33008 "2026-02-25T11:28:33Z")

</div>

I know that swift is deprecated from keeping Silver in sync with new language features added to the Apple swift language. But how about silver extensions to make sure that silver can be used in Elements, such as use swi…

---

## [Embedding Silver in Apple Swift Projects](https://talk.remobjects.com/t/embedding-silver-in-apple-swift-projects/29406)

<div class="topic-metadata">

**Author:** [@joehinkle11](https://talk.remobjects.com/u/joehinkle11)\
**Replies:** 3\
**Last updated:** [February 9, 2024, 2:01am UTC](https://talk.remobjects.com/t/embedding-silver-in-apple-swift-projects/29406 "2024-02-09T02:01:25Z")

</div>

Is it possible to interop between an Apple Swift project and Silver? I’m working at a company with a massive ObjC/Swift codebase using Bazel, and my team wants to be able to iterate faster. I’m thinking we could have som…

---

## [Arrays in structs not functioning for Swift](https://talk.remobjects.com/t/arrays-in-structs-not-functioning-for-swift/28801)

<div class="topic-metadata">

**Author:** [@sollapse](https://talk.remobjects.com/u/sollapse)\
**Replies:** 6\
**Last updated:** [January 19, 2024, 5:21pm UTC](https://talk.remobjects.com/t/arrays-in-structs-not-functioning-for-swift/28801 "2024-01-19T17:21:18Z")

</div>

I was checking out the features of the Swift language much as I’ve been doing with Mercury and wanted to see the use of array’s within structs. It seems the size is correctly allocated within the structure, however when …

---

## [Inconsistent class type behaviour compared to Swift](https://talk.remobjects.com/t/inconsistent-class-type-behaviour-compared-to-swift/27392)

<div class="topic-metadata">

**Author:** [@misterman](https://talk.remobjects.com/u/misterman)\
**Replies:** 10\
**Last updated:** [October 22, 2022, 9:53pm UTC](https://talk.remobjects.com/t/inconsistent-class-type-behaviour-compared-to-swift/27392 "2022-10-22T21:53:17Z")

</div>

The behaviour of Silver (Water: .2777) differs from Swift 5.7 when it comes to handling class types: Example code: class BasicClass { required init() { } func someFunction() { } } class AdvancedClass: BasicCla…

---

## [Associated type not recognized in generic constraint](https://talk.remobjects.com/t/associated-type-not-recognized-in-generic-constraint/27295)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 2\
**Last updated:** [September 30, 2022, 3:39pm UTC](https://talk.remobjects.com/t/associated-type-not-recognized-in-generic-constraint/27295 "2022-09-30T15:39:29Z")

</div>

Associated type is not recognized when protocol is used as generic constraint (Android and .NET). Using Fire .2773. It compiles in Xcode. Test project attached. AssociatedTypeTest.zip (246.6 KB)

---

## [Enum can only be String](https://talk.remobjects.com/t/enum-can-only-be-string/26808)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 7:19pm UTC](https://talk.remobjects.com/t/enum-can-only-be-string/26808 "2022-06-15T19:19:44Z")

</div>

Definition of enum on Android: enum SomeEnum { case one, two, three } // Fails on Android enum SomeIntEnum: Int { case one, two, three } // Fails on Android enum SomeIntEnum: String { case one, two, three } // Com…

---

## [Hello World Silver in Fire crashes with SIGABRT](https://talk.remobjects.com/t/hello-world-silver-in-fire-crashes-with-sigabrt/26770)

<div class="topic-metadata">

**Author:** [@phill.vance](https://talk.remobjects.com/u/phill.vance)\
**Replies:** 6\
**Last updated:** [June 10, 2022, 5:53pm UTC](https://talk.remobjects.com/t/hello-world-silver-in-fire-crashes-with-sigabrt/26770 "2022-06-10T17:53:36Z")

</div>

I’ve created a new Cocoa console application and just tried to build the single line program containing writeLn("The magic happens here.") The message prints but then I get an error in that says Collecting from unknow…

---

## [Networking Abstractions](https://talk.remobjects.com/t/networking-abstractions/26761)

<div class="topic-metadata">

**Author:** [@phill.vance](https://talk.remobjects.com/u/phill.vance)\
**Replies:** 5\
**Last updated:** [June 8, 2022, 8:17pm UTC](https://talk.remobjects.com/t/networking-abstractions/26761 "2022-06-08T20:17:14Z")

</div>

Hello All, are there any cross platform networking apis available in the Island library? I’d like to be able to write some networking code using tcp, udp and at some point http. I’m a free Silver user and I’m hoping ther…

---

## [Trying to run my first project](https://talk.remobjects.com/t/trying-to-run-my-first-project/26645)

<div class="topic-metadata">

**Author:** [@Youseful](https://talk.remobjects.com/u/Youseful)\
**Replies:** 7\
**Last updated:** [May 8, 2022, 6:26pm UTC](https://talk.remobjects.com/t/trying-to-run-my-first-project/26645 "2022-05-08T18:26:07Z")

</div>

Xcode.app bundle at ‘/Library’ is missing file ‘/Library/Contents/version.plist’. I have a working copy of xcode. are there tutorial videos ?? as an aside I would like to use swiftui

---

## [Can't import dll function](https://talk.remobjects.com/t/cant-import-dll-function/26619)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 5\
**Last updated:** [May 3, 2022, 10:47pm UTC](https://talk.remobjects.com/t/cant-import-dll-function/26619 "2022-05-03T22:47:23Z")

</div>

Using VS2022 with Elements 2735. The compile error in the screenshot doesn’t occur in 2731. Could it have something to do with the brackets issue (E25855)? Test project attached. WinFormsApp.zip (71.1 KB)

---

## [Unknown \[Int\].Type in Swift code?](https://talk.remobjects.com/t/unknown-int-type-in-swift-code/26606)

<div class="topic-metadata">

**Author:** [@aaronbratcher1](https://talk.remobjects.com/u/aaronbratcher1)\
**Replies:** 17\
**Last updated:** [May 4, 2022, 7:33pm UTC](https://talk.remobjects.com/t/unknown-int-type-in-swift-code/26606 "2022-05-04T19:33:58Z")

</div>

I’m trying to incorporate AgileDB into a new Swift/macOS project using the Fire IDE on Mac. I downloaded the source code from here: GitHub - AaronBratcher/AgileDB: Easy way to save and retrieve full object graphs from a …

---

## [Can't compile protocol method implementation with Self param constraint](https://talk.remobjects.com/t/cant-compile-protocol-method-implementation-with-self-param-constraint/26610)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 1\
**Last updated:** [May 1, 2022, 1:25pm UTC](https://talk.remobjects.com/t/cant-compile-protocol-method-implementation-with-self-param-constraint/26610 "2022-05-01T13:25:20Z")

</div>

Fire .2735 The errors in screenshot appear on both, Android and .NET. Both implementations compile in Xcode. Test solution attached. EquatableTest.zip (427.2 KB)

---

## [Swift 5.5: again big pile of changes .... sigh](https://talk.remobjects.com/t/swift-5-5-again-big-pile-of-changes-sigh/24842)

<div class="topic-metadata">

**Author:** [@marcvanbreemen](https://talk.remobjects.com/u/marcvanbreemen)\
**Replies:** 8\
**Last updated:** [April 29, 2022, 8:57pm UTC](https://talk.remobjects.com/t/swift-5-5-again-big-pile-of-changes-sigh/24842 "2022-04-29T20:57:19Z")

</div>

Is it just me or is Swift is becoming a syntax / bloated mess? After7 years it still keeps on introducing a big load of changes. Shouldn’t a language be as small as possible? Maybe I’m old, but still think Objective-C …

---

## [Nested typealias not recognized by nested type](https://talk.remobjects.com/t/nested-typealias-not-recognized-by-nested-type/26590)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 7:21pm UTC](https://talk.remobjects.com/t/nested-typealias-not-recognized-by-nested-type/26590 "2022-04-28T19:21:33Z")

</div>

Fire .2731 Nested Swift.Array typealias is not recognized if used as field type in nested type. Other nested type is recognized. It fails to compile in Android but compiles in .NET. Test project attached. Test pro…

---

## [Can't extend Swift.Array more than once](https://talk.remobjects.com/t/cant-extend-swift-array-more-than-once/26585)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 8\
**Last updated:** [April 26, 2022, 6:51pm UTC](https://talk.remobjects.com/t/cant-extend-swift-array-more-than-once/26585 "2022-04-26T18:51:33Z")

</div>

Using Elements .2731 in Fire and VS2022. Swift.Array can only be extended once. If I try to extend it twice (or in two/multiple files) I get a compile time error, unless I use an alias. This only happens in .NET, Androi…

---

## [Swift.Array.first issue](https://talk.remobjects.com/t/swift-array-first-issue/26583)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 3\
**Last updated:** [May 24, 2022, 2:45pm UTC](https://talk.remobjects.com/t/swift-array-first-issue/26583 "2022-05-24T14:45:36Z")

</div>

Using Elements .2731 in Fire and VS2022. With array of structs, accessing first item’s field causes compile time error in .NET. Android compiles fine. Test projects attached. TestProjects.zip (461.0 KB)

---

## [Issues with nullables](https://talk.remobjects.com/t/issues-with-nullables/26496)

<div class="topic-metadata">

**Author:** [@ndelic](https://talk.remobjects.com/u/ndelic)\
**Replies:** 2\
**Last updated:** [April 13, 2022, 9:13am UTC](https://talk.remobjects.com/t/issues-with-nullables/26496 "2022-04-13T09:13:54Z")

</div>

Using Elements .2727 in Fire and VS 2019/2022. The following compile time issues occur (see both screenshots): 1.) Variable expected error on assignment of nullable struct’s field value (Android and .NET) 2.) Expressio…

---

## [Null strings and let declaration order](https://talk.remobjects.com/t/null-strings-and-let-declaration-order/26277)

<div class="topic-metadata">

**Author:** [@chrisp](https://talk.remobjects.com/u/chrisp)\
**Replies:** 5\
**Last updated:** [March 9, 2022, 9:51am UTC](https://talk.remobjects.com/t/null-strings-and-let-declaration-order/26277 "2022-03-09T09:51:37Z")

</div>

are there restrictions in elements for when in a scope let declarations should work? let a = "a" print(a) let b= "b" print(a) print(b) ----output---- a a (null) let a = "a" let b= "b" print(a) print(a) print(b) --…

---

## [IE: System.NullReferenceException when generating output for Island](https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203)

<div class="topic-metadata">

**Author:** [@mhavu](https://talk.remobjects.com/u/mhavu)\
**Replies:** 3\
**Last updated:** [December 29, 2021, 4:47pm UTC](https://talk.remobjects.com/t/ie-system-nullreferenceexception-when-generating-output-for-island/23203 "2021-12-29T16:47:40Z")

</div>

I get Internal error: System.NullReferenceException: Object reference not set to an instance of an object in the output-generation phase of building a project for Island: E: Internal error: System.Null…

---

## [A problem with variadic or array arguments](https://talk.remobjects.com/t/a-problem-with-variadic-or-array-arguments/25841)

<div class="topic-metadata">

**Author:** [@mhavu](https://talk.remobjects.com/u/mhavu)\
**Replies:** 4\
**Last updated:** [December 18, 2021, 8:07am UTC](https://talk.remobjects.com/t/a-problem-with-variadic-or-array-arguments/25841 "2021-12-18T08:07:35Z")

</div>

I have problems getting variadic or array arguments to work in Silver (Fire 11.0.0.2695 on macOS 12.0.1) and WASM. Here is a simple example: func test(\_ rest: \[Any\]) { for arg in rest { // RuntimeError: memory acce…

---

## [Silver (Swift) Character Datatype - Type Mismatch Error](https://talk.remobjects.com/t/silver-swift-character-datatype-type-mismatch-error/25815)

<div class="topic-metadata">

**Author:** [@chikega](https://talk.remobjects.com/u/chikega)\
**Replies:** 5\
**Last updated:** [December 7, 2021, 8:58pm UTC](https://talk.remobjects.com/t/silver-swift-character-datatype-type-mismatch-error/25815 "2021-12-07T20:58:45Z")

</div>

Just plugging in some code from the Swift documentation and ran through a few issues. I can declare a variable with the Character datatype and it will compile fine. var letter2: Character print(typeOf(letter2)) …

---

## [Filter not compiling as expected](https://talk.remobjects.com/t/filter-not-compiling-as-expected/25607)

<div class="topic-metadata">

**Author:** [@peter.lusmore1](https://talk.remobjects.com/u/peter.lusmore1)\
**Replies:** 9\
**Last updated:** [November 10, 2021, 11:15am UTC](https://talk.remobjects.com/t/filter-not-compiling-as-expected/25607 "2021-11-10T11:15:46Z")

</div>

When I try to use a filter to restrict the files I am looking at in a directory using let InputDir = try! FileManager.defaultManager.contentsOfDirectory(atPath: tPath.stringValue) let txtFiles = InputDir.filter( $0.pa…

---

## [\[indexFrom..\<indexTo\] error 'Parameter 1 should be Int32'](https://talk.remobjects.com/t/indexfrom-indexto-error-parameter-1-should-be-int32/25584)

<div class="topic-metadata">

**Author:** [@peter.lusmore1](https://talk.remobjects.com/u/peter.lusmore1)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 10:58am UTC](https://talk.remobjects.com/t/indexfrom-indexto-error-parameter-1-should-be-int32/25584 "2021-10-28T10:58:32Z")

</div>

Even though I define the first parameter correctly I am getting this error. Is there an issue with the runtime library? var indexFrom, indexTo: Int32 string1 = string2\[indexFrom..\<indexTo\]

---

## [Paste C# code to Silver crashes](https://talk.remobjects.com/t/paste-c-code-to-silver-crashes/24959)

<div class="topic-metadata">

**Author:** [@peter.lusmore](https://talk.remobjects.com/u/peter.lusmore)\
**Replies:** 4\
**Last updated:** [November 8, 2021, 9:12am UTC](https://talk.remobjects.com/t/paste-c-code-to-silver-crashes/24959 "2021-11-08T09:12:09Z")

</div>

When I try to paste a C# program to Fire to convert to Swift it crashes with the attached error message. I am using the latest build from today. Can you help?

---

## [SE-0258 Property Wrappers](https://talk.remobjects.com/t/se-0258-property-wrappers/24709)

<div class="topic-metadata">

**Author:** [@wdb](https://talk.remobjects.com/u/wdb)\
**Replies:** 8\
**Last updated:** [May 17, 2021, 12:11pm UTC](https://talk.remobjects.com/t/se-0258-property-wrappers/24709 "2021-05-17T12:11:56Z")

</div>

I was wondering if what the status of this laaguage feature is? I noticed its listed on the Swift Evolution page but I can’t get details about the ticket as its private :slight\_smile:

---

## [Failing to understand the Delegate](https://talk.remobjects.com/t/failing-to-understand-the-delegate/24443)

<div class="topic-metadata">

**Author:** [@Alexander\_Loren\_Alex](https://talk.remobjects.com/u/Alexander_Loren_Alex)\
**Replies:** 12\
**Last updated:** [March 23, 2021, 7:56pm UTC](https://talk.remobjects.com/t/failing-to-understand-the-delegate/24443 "2021-03-23T19:56:15Z")

</div>

I am trying to wrap my head around how to properly use the Delegate type from within Silver / Fire. After reading the documentation and a few forum threads, I thought I had a basic understanding. But I am receiving four T…

[Next page](https://talk.remobjects.com/c/elements/silver/26.md?page=1)
