Skip to main content
Filter by
Sorted by
Tagged with
Best practices
1 vote
4 replies
122 views

If my record implements an interface, with a field accessor implicitly implementing a method, it should be an instance of what the @Override annotation is meant to cover. interface I { int f(); } ...
ice1000's user avatar
  • 6,619
Advice
0 votes
2 replies
63 views

I wanted to define a record type with a Static_Predicate: -- irregular_matrices.ads generic type Element_Type is private; package Irregular_Matrices is subtype Index_Type is Positive; ...
tymurmchyk's user avatar
7 votes
1 answer
149 views

I stumbled upon something that got me curious. Apparently, serializing a record with a cyclic reference does not retain the cycle when deserializing it again, it becomes null. When doing the same ...
Zabuzard's user avatar
  • 26.3k
0 votes
1 answer
69 views

I've written the next piece of code in order to declare a vector of lexical elements: type Lexical_Element_Kind is ( Delimiter, -- & ' ( ) * + , - . / : ; < = > | -- => .. ...
tymurmchyk's user avatar
0 votes
1 answer
93 views

I want to check to see if value from a form exists in Microsoft Access table using vba or macro that is user friendly but need help putting it together. I've tried, Private Sub Donor_Key_LostFocus() I ...
Sue Clark's user avatar
1 vote
1 answer
85 views

I want the app to record the user's voice and send it to a CSV file (Google Sheets). I have it working for user input so far. In my "pubspec.yaml" file, I've defined the record, ...
Max Butler's user avatar
2 votes
1 answer
73 views

I would like to create a virtual record field "r" for the red component of a color using the Color package. This package uses a data family Color. I tried to write the following : import GHC....
141592653's user avatar
  • 794
2 votes
1 answer
141 views

I have this record: record Foo { string _bar = "initialized"; public string Bar => _bar; } I'm running the following code: var foo = new Foo(); Console.WriteLine(foo?.Bar ?? &...
Ivan Petrov's user avatar
  • 7,399
1 vote
1 answer
34 views

We are in the Groovy universe. Let's say I have a record like follows: record Person(String firstName, String lastName, String city) {} What is the shortest way to make sure that none of the three ...
Natasha's user avatar
  • 916
2 votes
3 answers
187 views

Let's say I have this: class AA(string a, string b, string? c) { ... } record BB { public string A { get; init; }; public string B { get; init; }; public string? C { get; init; }; ...
John's user avatar
  • 855
1 vote
1 answer
78 views

I have the following SAS dataset, with a single columns called STAT (This field contains a series of values for each record): I need to create a new field called CountOpen that, for each row, counts ...
Giampaolo Levorato's user avatar
1 vote
2 answers
172 views

I am a new to C# and .NET 9. I am trying to execute the following program I found from the official MS tutorial - Create record types public record Point(int X, int Y); public static void Main() { ...
Mohamed's user avatar
  • 271
6 votes
1 answer
176 views

I want a procedure that does something like this: procedure RecordStringToLower(var MyRecord); begin // 1. Loop through all fields // 2. Find string fields // 3. Convert all string fields to ...
Shaun Roselt's user avatar
  • 4,411
6 votes
1 answer
239 views

Given this declaration: type TRec = record FNr: integer; FName: string; constructor Create(ANr: integer); end; and this implementation of the constructor: constructor TRec.Create(ANr: ...
Anders G's user avatar
0 votes
3 answers
114 views

I have an array of any values, as well as data associated with each value. This data is stored as Record<string,FooData> where the key is generated using the index within the array. However, I ...
LeCarbonator's user avatar

15 30 50 per page
1
2 3 4 5
246