Questions tagged [modifier]
347 questions
-1
votes
1 answer
Is there a way to "subclass" a modifier?
I am developing an app using SwiftUI. My first one.
This app uses .sheet(), .actionSheet() and .alert() but these modifiers have very generic names.
Suppose I use .sheet() to show forms, .actionSheet() to show menus and .alert() to show error…

Ronnie
- 332
- 2
- 11
-1
votes
1 answer
Why does my wpf form bind to internal resource?
I have a wpf control, and a resource (marked internal) - both in the same namespace.
But when I try to access to the resource via

Malior
- 1,221
- 8
- 16
-1
votes
1 answer
Blender subdivision surface, mirror modifier issues
I am new to Blender and I'm currently trying to model Goku from DragonBall GT. I started from a Cube and i modified it to a simple humanoid model using a mirror modifier. After I applied the mirror modifier on the object i tried to subdivide the…

Loizos Vasileiou
- 674
- 10
- 37
-1
votes
1 answer
Why am I able to access a private instance variable of one instance from a method invoked on another instance of the same object?
In the below code:
class Person {
private String name;
private int x = 5;
public Person(String name) {
this.name = name;
}
public void invoke(Person p) {
System.out.println(p.name);
}
}
class YU {
public…

paidedly
- 1,413
- 1
- 13
- 22
-1
votes
2 answers
Using Smarty Modifier
I found this Smarty modifier on smartys website that is a post to convert bbcode in to html but i can't find or it don't say what the syntax is to use it for example.
{$bbcode_here|bbcode2html}
Could someone please tell or show me how to use this…

mike jones
- 101
- 1
- 2
- 13
-2
votes
1 answer
How to detect a pressed key?
I have an assignment for college where I have to take strings as an input and stop the program if the user presses CTRL + z and then display the longest and shortest string. I got the Z alright but I can't seem to detect if the user pressed CTRL…

danytb8
- 1
-2
votes
1 answer
how can i make a button public that i form in runtime?
I have formed buttons at runtime. I need to access the buttons from another form but i can't change the modifier to public at runtime
Could you please help me?

Leigh Cheri
- 126
- 10
-2
votes
1 answer
Receiving Error in final Modifier
In my android application here is some piece of code.
final String line;
while ((line = rd.readLine()) != null) {
// Print the response output...
offer.this.runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(getBaseContext(),…

Linga
- 10,379
- 10
- 52
- 104
-2
votes
2 answers
php preg_replace(): Unknown modifier ','
I have a long long $partner list, write in a single common file.
remove.inc
$partner =<<#s","#
#s" EOT; //more $partner rules... index.php include(remove.inc); $str =…

cj333
- 2,547
- 20
- 67
- 110
-2
votes
2 answers
Confusion about superclass references and subclass objects
I have some questions about this code:
class superclass
{
void bark() {}
}
class subclass extends superclass
{
void bark() {}
public static void main(String[] args) {
superclass refvar = new subclass();
refvar.bark();
…

ravindersangwan
- 1
- 1
- 3
-3
votes
1 answer
Match multiple lines that do NOT start with "" without using the "m" modifier (golang flavor)
I'm trying to match multiple lines that do not begin with a HTML
Dolor…
tag, using just the g modifier with the Golang flavor of RegEx. Here's an example: Lorem ipsum
INNEN. Wohnung, Erdgeschoss – Tag
Dolor…

Fabrizio
- 3
- 3
-3
votes
2 answers
how can i print out the type, size and range of a java data type ? esp those wtih modifiers?
Currently i can print out the type size and range of a;; primitive java data types except bollean using the following method.
public class sizJ {
public static void display(Class> type, int size, Number min, Number max) {
…

basilbc
- 69
- 1
- 1
- 9
-3
votes
1 answer
Problems with getters and setters in C++
I have a problem with my getters and setters in C++. I implemented a Queue, I also implememented a class Process. My queue saves processes. My class Process has two attributes: "Identifier" and "Time" and also has setters and getters. I set 80 as…

RodrigoSantisteban
- 29
- 4
-3
votes
1 answer
The ".replace" operator isn't working Python
I was testing some mechanics out and ran into an issue, the following program should replace the '+' sight to ' + '. The output of this theoretically should be '20 + 20', but in reality, it's '20+20'. I have no idea why.
string = "20+20"
if…
-3
votes
2 answers
java access modifier- visibility of attributes whose type is other class. why it is visible or not?
below are some nesty example of java access modifiers. I can't clearly figure out answers when classes have attributes whose type is other classes.
package packageX;
import packageY.*;
public class A {
public int x;
private int y;
…

pota
- 1
- 3